【026-Remove Duplicates from Sorted Array(删除排序数组中的重复元素)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 Given a sorted array, remove the duplicates in place such that each element appear only once and return the...
分类:
编程语言 时间:
2015-07-24 08:06:09
阅读次数:
191
240 Search a 2D Matrix II这是个young‘s矩阵,最好的就是O(m+n)的算法了class Solution: # @param {integer[][]} matrix # @param {integer} target # @return {boole...
分类:
其他好文 时间:
2015-07-24 06:55:12
阅读次数:
298
function * generator(k){ console.log('begin'); var x = yield k; console.log('x:',x); var y = yield x+k; console.log('y:',y); return x+y+k;...
分类:
其他好文 时间:
2015-07-24 06:49:07
阅读次数:
96
Problem Definition:Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the strin...
分类:
其他好文 时间:
2015-07-23 23:38:33
阅读次数:
118
源码地址:https://github.com/search?utf8=?&q=AFNetworking下载链接1 return json & xml- (void)cctv01{ // 1.获得请求管理者(管理请求,帮助发请求) AFHTTPRequestOperationManager*mgr....
分类:
Web程序 时间:
2015-07-23 23:14:24
阅读次数:
165
WebService 默认 return 返回 XML 格式,但是使用上述方式是以字符串形式返回。...
分类:
Web程序 时间:
2015-07-23 21:58:55
阅读次数:
118
Problem Definition:Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100".Solution: crack it in a ...
分类:
其他好文 时间:
2015-07-23 21:34:47
阅读次数:
104
http://blog.meathill.net/tech/js/disabled-mouse-wheel-js.html发现ie9、chrome、opera都好使,唯独特殊处理的Firefox 6不行,经过反复调试发现其它浏览器在事件处理函数中return false就行了,Firefox比较特殊...
分类:
Web程序 时间:
2015-07-23 19:40:51
阅读次数:
184
选出三个数,让最大的数和最小的数之差不超过d~那只需要将所有数排序后,找出=low) { mid=low+(high-low)/2; if(num[mid]==n) return mid; else if(num[mid]>=n) high=mid-1; ...
分类:
其他好文 时间:
2015-07-23 19:09:03
阅读次数:
96
Problem Definition:Given a sorted linked list, delete all duplicates such that each element appear only once. For example,Given 1->1->2, return 1->2.G...
分类:
其他好文 时间:
2015-07-23 19:08:28
阅读次数:
125