Given a binary search tree, write a functionkthSmallestto find thekth smallest element in it.Note:You may assume k is always valid, 1 ≤ k ≤ BST's tota...
分类:
其他好文 时间:
2015-07-23 13:47:56
阅读次数:
90
Given an integer array of sizen, find all elements that appear more than? n/3 ?times. The algorithm should run in linear time and in O(1) space.Hint:H...
分类:
其他好文 时间:
2015-07-23 13:41:41
阅读次数:
103
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the following matr...
分类:
其他好文 时间:
2015-07-23 13:40:49
阅读次数:
95
◆ 文件处理命令:file、mkdir、grep、dd、find、mv、ls、diff、cat、ln;系统信息存放在文件里,文件与普通的公务文件类似。每个文件都有自己的名字、内容、存放地址及其它一些管理信息,如文件的用户、文件的大小等。文件可以是一封信、一个通讯录,或者是程序的源语句、程序的数据,甚...
分类:
系统相关 时间:
2015-07-23 13:26:31
阅读次数:
207
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2015-07-23 00:16:27
阅读次数:
187
Specialized Four-Digit Numbers
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 4963 Accepted Submission(s): 3587
Problem Description
Find ...
分类:
其他好文 时间:
2015-07-22 22:57:43
阅读次数:
118
find the most comfortable road
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 4899 Accepted Submission(s): 2131
Problem Description
...
分类:
其他好文 时间:
2015-07-22 22:55:53
阅读次数:
116
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],
[3,4],
[...
分类:
其他好文 时间:
2015-07-22 20:56:27
阅读次数:
105
10391 Compound WordsYou are to find all the two-word compound words in a dictionary. A two-word compound word is a word in the dictionary that is the ...
分类:
其他好文 时间:
2015-07-22 20:52:09
阅读次数:
98
昨天发现qmake这个命令不能使用,查了一些资料,大部分都说是环境变量没有设置好:
Qt默认安装是在 /opt/qt-xxxx/qt/bin 或者 /opt/qt-xxx/bin 下,实在不行就查找 updatedb; locate qmake 或者 find / -name qmake.
找到路径之后,在/etc/profile文件里添加下面几行语句:
export QTDIR=/op...
分类:
其他好文 时间:
2015-07-22 18:45:08
阅读次数:
125