Combination Sum
Total Accepted: 95000 Total
Submissions: 302249 Difficulty: Medium
Given a set of candidate numbers (C) and a target number (T), find all unique combinations...
分类:
其他好文 时间:
2016-06-12 02:30:13
阅读次数:
164
题目链接:https://leetcode.com/problems/word-pattern/
题目:
Given a pattern and a string str,
find if str follows the same pattern.
Here follow means a full match, such that there is a bijection b...
分类:
其他好文 时间:
2016-06-12 02:25:57
阅读次数:
189
Triangle
Total Accepted: 71791 Total
Submissions: 235313 Difficulty: Medium
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent...
分类:
其他好文 时间:
2016-06-12 02:18:12
阅读次数:
124
题目链接:https://leetcode.com/problems/longest-valid-parentheses/题目:
Given a string containing just the characters ‘(’ and ‘)’, find the length of the longest valid (well-formed) parentheses substring.For...
分类:
其他好文 时间:
2016-06-12 02:16:31
阅读次数:
112
题目链接:https://leetcode.com/problems/longest-consecutive-sequence/
题目:
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.
For example,
Given [100,...
分类:
其他好文 时间:
2016-06-12 02:12:52
阅读次数:
100
Linux下有多种查找文件指令:find、whereis、which和locate。● which:查看可执行文件的位置● whereis:查看文件的位置● locate:配合数据库查看文件● find:实际搜寻硬盘查询 其中find是最常用和最强大的查找命令。它能做到实时查找,精确查找,但速度慢。下面主要对find指令相关用法进行详细介绍。●●●find指令:【格式】find [指...
分类:
系统相关 时间:
2016-06-12 02:07:56
阅读次数:
238
Kth Largest Element in an Array
Total Accepted: 59659 Total
Submissions: 175932 Difficulty: Medium
Find the kth largest element in an unsorted array. Note that it is the kth la...
分类:
其他好文 时间:
2016-06-12 02:01:21
阅读次数:
126
解决办法: export LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libv4l/v4l1compat.so 注意路径不一定是上面这个路径。 自己在/usr/lib下,find -name v4l1compat.so,来确定路径 ...
分类:
其他好文 时间:
2016-06-12 00:08:41
阅读次数:
1427
t = 'He is a string. Who are you?' print(t.capitalize()) #将首字母大写 print(t.split()) #以空格分割每个单词,得到一个list print(t.find('i')) #找到字符i的首个索引下标 print(t.find('i ...
分类:
编程语言 时间:
2016-06-11 21:27:24
阅读次数:
188
POJ 1426 Find The Multiple Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 25734 Accepted: 10613 Special Judge Description Given a positive ...
分类:
其他好文 时间:
2016-06-11 20:13:03
阅读次数:
248