摘要: 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 阅读全文
posted @ 2019-03-01 20:17 mingL 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 59. Spiral Matrix II Given a positive integer n, generate a square matrix filled with elements from 1 to n2in spiral order. Example: 阅读全文
posted @ 2019-03-01 20:15 mingL 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-03-01 20:13 mingL 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-03-01 20:11 mingL 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 56. Merge Intervals Given a collection of intervals, merge all overlapping intervals. Example 1: Example 2: 阅读全文
posted @ 2019-03-01 20:07 mingL 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-03-01 20:04 mingL 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 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: 阅读全文
posted @ 2019-03-01 20:00 mingL 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-03-01 19:54 mingL 阅读(226) 评论(0) 推荐(0) 编辑