Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this in place with cons...
分类:
其他好文 时间:
2015-06-09 11:58:43
阅读次数:
86
Given a sorted linked list, delete all duplicates such that each element appear only once.For example,
Given 1->1->2, return 1->2.
Given 1->1->2->3->3, return 1->2->3.对于这个删除链表中的重复元素但是对于重复元素需要保留一个,前面遇到的...
分类:
其他好文 时间:
2015-06-08 19:41:37
阅读次数:
172
题目描述
On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters
corresponding to those keys will not appear on screen.
Now given a string that you are s...
分类:
其他好文 时间:
2015-06-08 11:45:27
阅读次数:
118
状态模式:
当一个对象的内部状态发生变化时允许改变它的行为。Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.状态模式将依赖于状态的行为分离成了各种状态类,每一种特定的转态类只处理单一的行为,并且定义了各种状态之间的转移变...
分类:
其他好文 时间:
2015-06-07 12:36:27
阅读次数:
135
题目:Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space ...
分类:
其他好文 时间:
2015-06-06 06:51:13
阅读次数:
120
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 ...
分类:
编程语言 时间:
2015-06-06 00:27:09
阅读次数:
171
Problems:Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra ...
分类:
其他好文 时间:
2015-06-04 09:44:13
阅读次数:
157
Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a...
分类:
其他好文 时间:
2015-06-04 00:50:42
阅读次数:
172
主意利用asc码/*Given a column title as appear in an Excel sheet, return its corresponding column number.For example: A -> 1 B -> 2 C -> 3 ... ...
分类:
其他好文 时间:
2015-06-03 23:06:39
阅读次数:
222
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->...
分类:
其他好文 时间:
2015-06-03 21:24:26
阅读次数:
106