git branch look at your branchesgit branch
newbranchgit checkout newbrachdo somethinggit checkout mastergit merge
newbranchgit branch -d newbrach
分类:
其他好文 时间:
2014-05-27 16:09:01
阅读次数:
227
Remove Duplicates from Sorted Array II
分类:
其他好文 时间:
2014-05-26 01:20:51
阅读次数:
159
Search in Rotated Sorted Array I II
分类:
其他好文 时间:
2014-05-26 00:59:47
阅读次数:
197
题目如下:
Tree Summing
Background
LISP was one of the earliest high-level programming languages and, withFORTRAN, is one of the oldest languages currently being used. Lists,wh...
分类:
其他好文 时间:
2014-05-25 21:39:51
阅读次数:
276
You are given two linked lists representing two non-negative numbers. The digits are
stored in reverse order and each of their nodes contain a single digit. Add the two numbers
and return i...
分类:
其他好文 时间:
2014-05-25 21:36:52
阅读次数:
268
Remove Duplicates from Sorted ArrayGiven a
sorted array, remove the duplicates in place such that each element appear only
once and return the new len...
分类:
其他好文 时间:
2014-05-25 19:08:31
阅读次数:
203
通常在Surfaceview作为预览视频帧的载体,有时需在上面显示提示文字。以前我弄的都好好的...
分类:
移动开发 时间:
2014-05-25 18:27:16
阅读次数:
417
题目:一个有序数组,要求保证数组中的每个元素不能超过2个。 输入:A =[1,1,1,2,2,3]
输出:length =5, and A is now[1,1,2,2,3]思路:双指针
。有些绕,不过理清了后,思路还是很直接明朗的。1、两个指针:p和help。初始化时同时指向数组头。变量cur.....
分类:
其他好文 时间:
2014-05-25 16:15:16
阅读次数:
285
题目:合并两个有序数组A ,
B,将合并后的数组存到A中。假设A的空间足够装下A和B所有的元素。思路:这道题考虑如果正向扫描两个数组,则每插入一个元素,则需移动A后的所有元素。换个角度想,既然元素个数一定,则从尾部扫描两个数组,依次放入到A的尾部,这样既不会产生大量元素的移动,也不会造成A中元素被覆...
分类:
其他好文 时间:
2014-05-25 15:09:32
阅读次数:
222
【题目】
Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).
You may assume that the intervals were initially sorted according to their start times.
Example 1:
Given intervals [1,3],[6,9], insert and mer...
分类:
其他好文 时间:
2014-05-25 12:56:43
阅读次数:
271