上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 46 下一页
摘要: Given an array ofnpositive integers and a positive integers, find the minimal length of a subarray of which the sum ≥s. If there isn't one, return 0 i... 阅读全文
posted @ 2015-05-14 16:37 卖程序的小歪 阅读(147) 评论(0) 推荐(0) 编辑
摘要: There are a total ofncourses you have to take, labeled from0ton - 1.Some courses may have prerequisites, for example to take course 0 you have to firs... 阅读全文
posted @ 2015-05-14 16:18 卖程序的小歪 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 缓存印象缓存给人的感觉就是可以提高程序运行速度,比如在桌面环境中,第一次打开一个大型程序可能需要10秒,但是关闭程序后再次打开可能只需5秒了。这是因为运行程序需要的代码、数据文件在操作系统中得到了缓存,第二次运行程序时可以直接中内存中读取不需要经过磁盘的读取了。除了文件内容外,系统还对文件系统的目录... 阅读全文
posted @ 2015-05-12 15:04 卖程序的小歪 阅读(2708) 评论(0) 推荐(0) 编辑
摘要: 1 class TrieNode { 2 public: 3 const static int NR_FANOUT = 26; 4 TrieNode* child[NR_FANOUT]; 5 int count; 6 // Initialize your data ... 阅读全文
posted @ 2015-05-11 21:18 卖程序的小歪 阅读(285) 评论(0) 推荐(0) 编辑
摘要: lsof即list open files的缩写,在Linux和其他Unix上都由,Mac XOS上也是查看打开文件/目录及对应进程COMMAND 进程命令行字符串PID 进程IDUSER 用户FD txt(进程的程序文件... 阅读全文
posted @ 2015-05-07 11:26 卖程序的小歪 阅读(605) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.For exampl... 阅读全文
posted @ 2015-05-07 08:46 卖程序的小歪 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Given two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to gett.All occurrences of a ... 阅读全文
posted @ 2015-05-07 08:26 卖程序的小歪 阅读(146) 评论(0) 推荐(0) 编辑
摘要: There are a total ofncourses you have to take, labeled from0ton - 1.Some courses may have prerequisites, for example to take course 0 you have to firs... 阅读全文
posted @ 2015-05-06 22:30 卖程序的小歪 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 绝对老题了,感觉已经重复了Reverse a singly linked list.click to show more hints.Hint:A linked list can be reversed either iteratively or recursively. Could you imp... 阅读全文
posted @ 2015-05-06 19:37 卖程序的小歪 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 重定向一般在命令行里就是把原本输出到屏幕的数据转而输出到一个指定的文件当中。如1 $ pwd > workdir.txt此时workdir.txt内就存储了pwd命令的输出,当前所在的工作目录默认情况下printf总是把内容输出到进程的打开文件表述符编号为1的对应的文件中(0-标准输入,1-标准输出... 阅读全文
posted @ 2015-05-05 09:52 卖程序的小歪 阅读(1703) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 46 下一页