NSNotFound定义一个值,用于指示请求项找不到或不存在。Defines a value that indicates that an item requested couldn’t be found or doesn’t exist.enum { NSNotFound = NSIntegerM...
分类:
编程语言 时间:
2015-09-04 22:34:16
阅读次数:
563
Given an array containsNnumbers of 0 ..N, find which number doesn't exist in the array.ExampleGivenN=3and the array[0, 1, 3], return2.ChallengeDo it i...
分类:
其他好文 时间:
2015-09-04 12:35:59
阅读次数:
156
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:
其他好文 时间:
2015-09-02 01:59:19
阅读次数:
144
输入 fdisk -l 可以看到输入 fdisk /dev/xvdb跟着向导一步步做下去(如果不知道该输入什么,就输入“m”并回车,可以打印出菜单):Command (m for help): mCommand action a toggle a bootable flag b edit bsd.....
分类:
其他好文 时间:
2015-09-01 23:56:57
阅读次数:
542
匹配:m/;/ (还可以简写为 /;/ ,略去 m)替换:s/;/;/转化:tr/;/;/这三种形式一般都和 =~ 或 !~ 搭配使用(其中 "=~" 表示相匹配,在整条语句中读作 does,"!~" 表示不匹配,在整条语句中读作 doesn't),并在左侧有待处理的标量变量。如果没有该变量和 =~...
分类:
其他好文 时间:
2015-09-01 10:43:29
阅读次数:
179
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:
其他好文 时间:
2015-08-30 12:35:22
阅读次数:
134
This is my answer to a Zhihu question.
分类:
其他好文 时间:
2015-08-30 07:40:54
阅读次数:
187
http://www.tuicool.com/articles/ZV3yUnRecently I upgraded my Mac OS X to Mavericks (10.9) and I was surprised to see that it doesn’t come with Maven. ...
分类:
系统相关 时间:
2015-08-28 21:16:00
阅读次数:
431
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:
其他好文 时间:
2015-08-28 12:43:45
阅读次数:
130
RuntimeError Root Cause
You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your f...
分类:
其他好文 时间:
2015-08-27 18:44:13
阅读次数:
175