public class Solution { public ArrayList> threeSum(int[] nums) { ArrayList> res = new ArrayList>(); if (nums == null || nums.length ...
分类:
其他好文 时间:
2015-05-19 08:46:58
阅读次数:
137
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.解题思路:...
分类:
其他好文 时间:
2015-05-19 07:12:50
阅读次数:
116
public class Solution { public int threeSumClosest(int[] nums, int target) { if (nums == null || nums.length < 3) { return Intege...
分类:
其他好文 时间:
2015-05-19 07:09:54
阅读次数:
123
js 检测两个数组是否相似 数组中的成员类型相同,顺序可以不同。例如[1, true] 与 [false, 2]是相似的数组的长度一致类型的判断范围,需要区分:String, Boolean, Number, undefined, null, 函数,日期, window.
分类:
编程语言 时间:
2015-05-19 00:34:10
阅读次数:
370
auto_ptr智能指针:其析构函数自动对其所指对象调用delete
若对象auto_ptr不指向某一资源,它会设为null
shared_ptr具有相同功能
但是多个shared_ptr对象能同时指向同一资源
注意:...
分类:
其他好文 时间:
2015-05-18 23:02:27
阅读次数:
160
var c = console.log;c(true === undefined);c(true == undefined);c(true === null);c(true == null);c(true === 1);c(true == 1);c(true === 2);c(true == 2);...
分类:
编程语言 时间:
2015-05-18 22:54:44
阅读次数:
180
--★转换结果如上图1、首先创建表:CREATE TABLE [成绩表]([编号] [int]IDENTITY(1,1) NOT NULL,[姓名] [varchar](50)NULL,[语文] [numeric](5, 2)NULL,[数学] [numeric](5, 2)NULL,[英语] [n...
分类:
数据库 时间:
2015-05-18 22:29:06
阅读次数:
211
一:如果linux根分区使用量达到100%,会造成如下现象:root不能登录系统不能正常启动二:通过命令查找根分区内的大文件1.du-sh/*2>/dev/null|sort-hr|head-32.如果上述命令执行后发现/var/占空间最大,那么在查找/var分区内的大文件,如:du-sh/var/*2>/dev/null|sort-hr..
分类:
系统相关 时间:
2015-05-18 21:13:02
阅读次数:
197
mysql增量恢复过程创建一张用于测试的表mysql>createtableuser(namechar(10),ageint(3));
QueryOK,0rowsaffected(0.07sec)
mysql>descuser;
+-------+----------+------+-----+---------+-------+
|Field|Type|Null|Key|Default|Extra|
+-------+----------+------+----..
分类:
数据库 时间:
2015-05-18 21:06:37
阅读次数:
156
问题导读:1.建一个MapReduce Project,运行时发现出问题:Could not locate executable null,该如何解决?2.Could not locate executabl ....\hadoop-2.2.0\hadoop-2.2.0\bin\winutils.e...
分类:
其他好文 时间:
2015-05-18 20:29:11
阅读次数:
184