Given a 2D board and a word, find if the word exists in the grid.
分类:
其他好文 时间:
2014-07-07 13:15:02
阅读次数:
165
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist...
分类:
其他好文 时间:
2014-07-03 11:09:35
阅读次数:
185
只设置文件夹权限为755 文件权限为644find -type d -exec chmod 755 {} \;find -type f -exec chmod 644 {} \;或者find -type d|xargs chmod 755find -type f|xargs chmod 644
分类:
系统相关 时间:
2014-07-01 22:35:28
阅读次数:
235
之前做了《Sublime Text 2 绿色汉化版 x64》,这些天抽空做了下 ST3 的汉化。。果然我没有任何理由爱上 ST3,不仅pojie麻烦,而且汉化更麻烦,菜单字符长度做了限制。比如 搜索 处的 Find 只能写4个字符,而汉字 搜索 的 utf-8 是E6 90 9C E7 B4 A2 ...
分类:
其他好文 时间:
2014-07-01 22:13:11
阅读次数:
390
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2014-06-30 22:43:45
阅读次数:
294
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 nu...
分类:
其他好文 时间:
2014-06-30 21:36:50
阅读次数:
292
Weekly golfers will find a bag that gives them enough space to do a lot of tees, balls, sticks, and whatever he deems necessary for the golf course. P...
分类:
其他好文 时间:
2014-06-30 20:52:39
阅读次数:
258
题目
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 it witho...
分类:
其他好文 时间:
2014-06-30 19:38:37
阅读次数:
226
题目
Given an array of integers, every element appears three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it...
分类:
其他好文 时间:
2014-06-30 19:23:18
阅读次数:
200
题目
Given n points
on a 2D plane, find the maximum number of points that lie on the same straight line.
方法
每次选择一个点,和其他n - 1个点,进行判断,统计最多的。
double computeSlope(Point a, Point b) {
...
分类:
其他好文 时间:
2014-06-30 15:48:45
阅读次数:
184