码迷,mamicode.com
首页 >  
搜索关键字:should    ( 4948个结果
[LeetCode]Two Sum
Q: Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the targe...
分类:其他好文   时间:2015-01-31 14:40:36    阅读次数:225
[LeetCode] Single Number II 单独的数字之二
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:其他好文   时间:2015-01-31 14:21:18    阅读次数:324
Flatten Binary Tree to Linked List
Given a binary tree, flatten it to a linked list in-place. For example, Given 1 / 2 5 / \ 3 4 6 The flattened tree should look like: 1 ...
分类:其他好文   时间:2015-01-30 22:58:55    阅读次数:299
hdu 1102 Constructing Roads(最小生成树 Prim)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1102Problem DescriptionThere are N villages, which are numbered from 1 to N, and you should build some ...
分类:其他好文   时间:2015-01-30 22:20:50    阅读次数:195
linux下如何看我的显卡驱动是否装好了
看configurure字段有木有driver字样,若有内容,则显卡驱动装好了。 sudo lshw -c video WARNING: you should run this program as super-user. ^CI (sysfs)   chenghao@chenghao-Lenovo-Product:~$ sudo lshw -c video [sudo] passwor...
分类:系统相关   时间:2015-01-30 17:45:23    阅读次数:247
Leetcode:LRUCache四个版本实现
题目Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get the va...
分类:系统相关   时间:2015-01-30 17:19:54    阅读次数:162
136.Single Number
Given an array of integers,every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement itwithout using extra m...
分类:其他好文   时间:2015-01-30 09:10:45    阅读次数:247
Swap Nodes in Pairs
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/43302355 Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm...
分类:其他好文   时间:2015-01-30 09:01:47    阅读次数:177
HTML&CSS学习笔记
// table row // table head // table data Atypeattribute that should always be equal to"text/css"Arelatt...
分类:Web程序   时间:2015-01-30 01:19:08    阅读次数:319
two sum
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, whe...
分类:其他好文   时间:2015-01-29 19:32:38    阅读次数:147
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!