Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, ...
分类:
其他好文 时间:
2014-10-11 08:50:35
阅读次数:
134
[leetcode]Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order....
分类:
其他好文 时间:
2014-10-10 15:11:54
阅读次数:
139
4271: Love Me, Love My PermutationDescriptionGiven a permutation of n: a[0], a[1] ... a[n-1], ( its elements range from 0 to n-1, For example: n=4, on...
分类:
其他好文 时间:
2014-10-09 23:48:23
阅读次数:
256
Problem DescriptionA subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another ....
分类:
其他好文 时间:
2014-10-09 21:57:27
阅读次数:
219
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.
For example,
Given the following matrix:
[
[ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9 ]
]
...
分类:
其他好文 时间:
2014-10-09 17:03:37
阅读次数:
143
Given two sorted integer arrays A and B, merge B into A as one sorted array.
Note:
You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements fro...
分类:
其他好文 时间:
2014-10-09 15:58:28
阅读次数:
232
April 13, 2010inUncategorizedRotate a one-dimensional array of n elements to the right by k steps.For instance, with n=7 and k=3, the array {a, b, c, ...
分类:
其他好文 时间:
2014-10-09 13:48:13
阅读次数:
129
if (!document.getElementsByClassName) { document.getElementsByClassNameForMobile = function(search) { var d = document, elements, pattern, i...
分类:
其他好文 时间:
2014-10-08 16:55:05
阅读次数:
134
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of ...
分类:
其他好文 时间:
2014-10-08 14:49:55
阅读次数:
217
[leetcode]Given an array where elements are sorted in ascending order, convert it to a height balanced BST....
分类:
其他好文 时间:
2014-10-08 10:09:55
阅读次数:
164