首先先贴一下题目:Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2...
分类:
其他好文 时间:
2014-12-18 13:31:49
阅读次数:
194
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 ...
分类:
其他好文 时间:
2014-12-18 00:08:32
阅读次数:
194
标题:Remove Element通过率:32.6%难度:简单Given an array and a value, remove all instances of that value in place and return the new length.The order of elements...
分类:
其他好文 时间:
2014-12-17 12:30:18
阅读次数:
157
word=['a','b','c','d','e','f','g']//首个元素为元素0,word[0]=aa=[num1:num2]//从num1到num2的元素(不包括元素num2)//若为负数,则代表倒数第几个在对list进行操作时,append 追加,word.append(elements...
分类:
其他好文 时间:
2014-12-17 00:02:38
阅读次数:
177
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.
Try to solve it in linear time/space.
Return 0 if the array contains less than 2 elements.
Y...
分类:
其他好文 时间:
2014-12-16 19:18:41
阅读次数:
230
一道非常有意思的题目。
原题如下:
Given a set of distinct integers, S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.
The solution set must not contain duplicate subsets.
For example,
If S = [1,2,3], a solution is:
[
[3],
[...
分类:
其他好文 时间:
2014-12-15 19:10:08
阅读次数:
123
Basic Layout(基本布局)In this section we’ll look at how you can position UI elements relative to the Canvas and each other. If you want to test yourself w...
分类:
编程语言 时间:
2014-12-15 19:00:06
阅读次数:
338
Canvas(画布)TheCanvasis the area for all UI elements to be inside. The Canvas is a Game Object with a Canvas component on it, and all UI elements must b...
分类:
其他好文 时间:
2014-12-15 15:10:10
阅读次数:
307
Kth Largest ElementFind K-th largest element in an array.NoteYou can swap elements in the arrayExampleIn array[9,3,2,4,8], the 3th largest element is ...
分类:
其他好文 时间:
2014-12-15 15:06:10
阅读次数:
338
最近收集的一个css Reset所以贴上来,分享一下:/* 清除内外边距 */body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, /* structural elements 结构元素 */dl, dt, dd, ul, ol, li, /* list ...
分类:
Web程序 时间:
2014-12-15 13:43:25
阅读次数:
174