码迷,mamicode.com
首页 >  
搜索关键字:leedcode    ( 225个结果
[leedcode 62] Unique Paths
A robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right at any point ...
分类:其他好文   时间:2015-07-13 15:30:06    阅读次数:123
[leedcode 60] Permutation Sequence
The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence (ie...
分类:其他好文   时间:2015-07-13 13:37:19    阅读次数:127
[leedcode 59] Spiral Matrix II
Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the following matri...
分类:其他好文   时间:2015-07-13 11:39:59    阅读次数:99
[leedcode 58] Length of Last Word
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:其他好文   时间:2015-07-13 11:36:56    阅读次数:92
[leedcode 56] Insert Interval
Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initially...
分类:其他好文   时间:2015-07-13 00:42:01    阅读次数:200
[leedcode 57] Merge Intervals
Given a collection of intervals, merge all overlapping intervals.For example,Given[1,3],[2,6],[8,10],[15,18],return[1,6],[8,10],[15,18]./** * Definiti...
分类:其他好文   时间:2015-07-13 00:35:59    阅读次数:151
[leedcode 54] Spiral Matrix
Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, 3 ],...
分类:其他好文   时间:2015-07-12 23:11:36    阅读次数:125
[leedcode 53] Maximum Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4,?1,2,1,...
分类:其他好文   时间:2015-07-12 22:53:56    阅读次数:146
[leedcode 55] Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:其他好文   时间:2015-07-12 17:04:29    阅读次数:165
[leedcode 52] N-Queens II
Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.public class Solution { ...
分类:其他好文   时间:2015-07-12 17:01:11    阅读次数:107
225条   上一页 1 ... 16 17 18 19 20 ... 23 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!