Reverse a linked list from position m to n. Do it in-place and in one-pass.For example:
Given 1->2->3->4->5->NULL, m = 2 and n = 4,return 1->4->3->2->5->NULL.Note:
Given m, n satisfy the following co...
分类:
其他好文 时间:
2016-05-06 12:27:28
阅读次数:
98
When you place an AJAX request, you also pass in a parameter that mentions the name of a callback function. The code on the server is designed to retu ...
分类:
Web程序 时间:
2016-05-04 22:47:14
阅读次数:
308
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo ...
分类:
其他好文 时间:
2016-05-04 20:48:40
阅读次数:
118
思路 新浪微博API接口提供了获取附近位置的微博用户的API接口,因此尝试通过分析春节期间全国用户各地微博用户分布情况,再结合用户注册地信息,粗略分析人口流动情况。 数据获取 0:新浪微博API接口 NearbyUser:http://open.weibo.com/wiki/2/place/near ...
分类:
其他好文 时间:
2016-05-03 21:57:21
阅读次数:
150
Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you ...
分类:
编程语言 时间:
2016-05-02 23:00:08
阅读次数:
255
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo ...
分类:
编程语言 时间:
2016-05-02 22:49:28
阅读次数:
190
The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each hou ...
分类:
编程语言 时间:
2016-05-02 21:09:52
阅读次数:
268
After robbing those houses on that street, the thief has found himself a new place for his thievery so that he will not get too much attention. This t ...
分类:
编程语言 时间:
2016-05-02 19:56:30
阅读次数:
151
Given a binary tree, flatten it to a linked list in-place. For example,Given 1 / \ 2 5 / \ \ 3 4 6 The flattened tree should look like: 1 \ 2 \ 3 \ 4 ...
分类:
其他好文 时间:
2016-04-30 14:18:04
阅读次数:
104
一天一道LeetCode系列(一)题目
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you mus...
分类:
其他好文 时间:
2016-04-29 18:34:53
阅读次数:
113