Remove Duplicates from Sorted Array问题:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new le...
分类:
其他好文 时间:
2015-03-08 10:23:57
阅读次数:
126
1.题目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.2.解决方案class Solution {
public:
...
分类:
其他好文 时间:
2015-03-06 19:14:30
阅读次数:
133
iOS8下面状态栏文字颜色变白:首先,设置Info.plist中的View controller-based status bar appearance为YES。其次 在appdelegate 中的didfinishlaunching中 加入 OC: [[UINavigationBar appear...
分类:
移动开发 时间:
2015-03-06 18:44:21
阅读次数:
143
Excel Sheet Column Number问题:Given a column title as appear in an Excel sheet, return its corresponding column number.思路: 进制转换方法我的代码:public class Solu....
分类:
其他好文 时间:
2015-03-04 15:59:33
阅读次数:
139
题目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.代码 public static ListNode deleteD...
分类:
其他好文 时间:
2015-03-02 13:17:21
阅读次数:
133
【题意】:获得最大循环长度。
【注意】:题目并不是一定按照第一二个数小于等于第二个数输入。如果不是,需要交换。。虽然这种数据感觉很无聊不过在题目中有提示的,The integers i and j must appear in the output
in the same order in which they appeared in the input and should be follo...
分类:
其他好文 时间:
2015-02-28 23:04:58
阅读次数:
162
Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, retu...
分类:
其他好文 时间:
2015-02-21 11:58:06
阅读次数:
115
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 -> AB
思路:Beca...
分类:
其他好文 时间:
2015-02-18 17:41:13
阅读次数:
214
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...
分类:
其他好文 时间:
2015-02-17 21:05:58
阅读次数:
168
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-02-17 00:42:49
阅读次数:
126