码迷,mamicode.com
首页 >  
搜索关键字:null    ( 33914个结果)
15 3Sum
public class Solution { public ArrayList> threeSum(int[] nums) { ArrayList> res = new ArrayList>(); if (nums == null || nums.length ...
分类:其他好文   时间:2015-05-19 08:46:58    阅读次数:137
【Leetcode】【Medium】Rotate List
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
16 3Sum Closest
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
javascript 简单实现对两个数组相似度的检验
js 检测两个数组是否相似 数组中的成员类型相同,顺序可以不同。例如[1, true] 与 [false, 2]是相似的数组的长度一致类型的判断范围,需要区分:String, Boolean, Number, undefined, null, 函数,日期, window.
分类:编程语言   时间:2015-05-19 00:34:10    阅读次数:370
条款13:以对象管理资源
auto_ptr智能指针:其析构函数自动对其所指对象调用delete 若对象auto_ptr不指向某一资源,它会设为null shared_ptr具有相同功能 但是多个shared_ptr对象能同时指向同一资源 注意:...
分类:其他好文   时间:2015-05-18 23:02:27    阅读次数:160
JavaScript中的Assertion
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
SQL多行转多列
--★转换结果如上图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根分区满了怎么办?
一:如果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增量恢复过程创建一张用于测试的表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
Could not locate executable null 解决办法
问题导读: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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!