448. Find All Numbers Disappeared in an Array 误区,O(n)不是要求只能有一个for循环,而是要求,不能有嵌套的for循环!!! 所以可以一个for结束,再一个for结束····这样的 气死了!!数组是 i=0;i<nums.length;i++; 要减 ...
分类:
其他好文 时间:
2017-04-10 16:36:12
阅读次数:
97
If we represent a date in the format YYYY-MM-DD (for example, 2017-04-09), do you know how many 9s will appear in all the dates between Y1-M1-D1 and Y ...
分类:
其他好文 时间:
2017-04-09 22:41:21
阅读次数:
474
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 ...
分类:
其他好文 时间:
2017-04-07 09:56:11
阅读次数:
88
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new lengthDo not allocate extra space for ...
分类:
其他好文 时间:
2017-04-04 20:42:52
阅读次数:
198
Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appear twi ...
分类:
其他好文 时间:
2017-04-04 10:41:15
阅读次数:
200
Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements of [1, n] ...
分类:
移动开发 时间:
2017-04-04 09:25:17
阅读次数:
219
转自:http://blog.csdn.net/xsl1990/article/details/25486211 如果你能看到一些sshd相关的进程信息,则说明你已经有这个服务了,否则(或者你想更新的话),使用下面的命令安装openssh [plain] view plaincopy sudo ap ...
分类:
其他好文 时间:
2017-04-04 00:53:48
阅读次数:
1783
1.快捷键 ctrl+F 在某个文档里搜索对应字段 ctrl+H 全文件查询对应字段 ctrl +shift +R 快速查找某个java类 ctrl +shift +O 自动导入需要的包,删除没用过的导入包。 2.设置工作空间字体大小和颜色 Windows -Preferences-General- ...
分类:
系统相关 时间:
2017-04-03 16:10:27
阅读次数:
232
Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements of [1, n] ...
分类:
移动开发 时间:
2017-04-02 16:17:00
阅读次数:
180
两个链表的第一个公共结点 数字在排序数组中出现的次数 二叉树的深度 平衡二叉树 数组中只出现一次的数字 36.输入两个链表,找出它们的第一个公共结点。 37.统计一个数字在排序数组中出现的次数。 38. 输入一棵二叉树,求该树的深度。从根结点到叶结点依次经过的结点(含根、叶结点)形成树的一条路径,最 ...
分类:
其他好文 时间:
2017-04-01 01:18:31
阅读次数:
251