摘要:
60. Permutation Sequence The set [1,2,3,...,n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, w 阅读全文
摘要:
59. Spiral Matrix II Given a positive integer n, generate a square matrix filled with elements from 1 to n2in spiral order. Example: 阅读全文
摘要:
58. Length of Last Word Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the 阅读全文
摘要:
57. Insert Interval Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the i 阅读全文
摘要:
56. Merge Intervals Given a collection of intervals, merge all overlapping intervals. Example 1: Example 2: 阅读全文
摘要:
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 represe 阅读全文
摘要:
54. Spiral Matrix Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. Example 1: Example 2: 阅读全文
摘要:
53. Maximum Subarray Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return i 阅读全文