码迷,mamicode.com
首页 >  
搜索关键字:elements    ( 4737个结果
Leetcode: Spiral Matrix
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
Spiral Matrix
[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
soj4271 Love Me, Love My Permutation (DFS)
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
Common Subsequence 最大公共子序列问题
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
[LeetCode]Spiral Matrix
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
第十二题 Merge Sorted Array
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
Rotating an array in place
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
^_^getElementsByClassName
if (!document.getElementsByClassName) { document.getElementsByClassNameForMobile = function(search) { var d = document, elements, pattern, i...
分类:其他好文   时间:2014-10-08 16:55:05    阅读次数:134
Leetcode: 3Sum
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
Convert Sorted Array to Binary Search Tree
[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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!