一、原题
Given an array of integers, every element appears twice except for
one. Find that single one.
int singleNumber(int *nums, int numsSize)
二、举例来说
nums[numsSize] ::: nums[5] = {2, 1, 1, 1,...
分类:
其他好文 时间:
2015-06-08 23:22:13
阅读次数:
146
Find the total area covered by tworectilinearrectangles in a2Dplane.Each rectangle is defined by its bottom left corner and top right corner as shown ...
分类:
其他好文 时间:
2015-06-08 23:10:32
阅读次数:
313
ldapsearch 参数表 下表可以用于描述的叙述 ldapsearch 写和小写的參数。參数用途 -?打印关于使用 ldapsearch 的帮助。 -a deref指定别名反向引用。请输入 never、always、search 或 find。假设不使用此參数。缺省为 never。 -A仅仅检....
分类:
其他好文 时间:
2015-06-08 22:50:28
阅读次数:
138
1. 题目:Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters. For example...
分类:
其他好文 时间:
2015-06-08 21:19:56
阅读次数:
106
find博大精深,本人除了简单的用法,其他的在工作中尚未深入研究。另,附上几个blog的文章,后续可能会更新这个列表:Linux文件查找命令find,xargs详述http://boyun.sh.cn/bio/?p=773用的最多的2个,找到指定类型的文件,打印和删除:
find${d_bak_log}-typef-name"*.log"-mtim..
分类:
其他好文 时间:
2015-06-08 19:50:03
阅读次数:
198
【称号】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...
分类:
其他好文 时间:
2015-06-08 19:07:41
阅读次数:
85
No.164 Maximum GapGiven an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear ti...
分类:
其他好文 时间:
2015-06-08 19:01:57
阅读次数:
80
1. 题目 Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices ...
分类:
其他好文 时间:
2015-06-08 18:45:08
阅读次数:
172
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for “abcabcbb” is “abc”, which the length is 3. For “...
分类:
其他好文 时间:
2015-06-08 17:32:43
阅读次数:
136
Given an m x n chessboard where you want to place chess knights. You have to find the number of maximum knights that can be placed in the chessboard such that no two knights attack each other.Those who...
分类:
其他好文 时间:
2015-06-08 17:32:11
阅读次数:
118