题目来源https://leetcode.com/problems/insert-interval/Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary... Read More
posted @ 2015-12-28 22:39 loadofleaf Views(240) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/merge-intervals/Given a collection of intervals, merge all overlapping intervals.For example,Given[1,3],[2,6],[8,10]... Read More
posted @ 2015-12-28 22:16 loadofleaf Views(380) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/jump-game-ii/Given an array of non-negative integers, you are initially positioned at the first index of the array.E... Read More
posted @ 2015-12-28 22:00 loadofleaf Views(205) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/jump-game/Given an array of non-negative integers, you are initially positioned at the first index of the array.Each... Read More
posted @ 2015-12-28 21:37 loadofleaf Views(254) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/spiral-matrix-ii/Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.题意分析Inp... Read More
posted @ 2015-12-28 16:33 loadofleaf Views(321) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/spiral-matrix/Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.题意分析I... Read More
posted @ 2015-12-28 16:20 loadofleaf Views(233) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/maximum-subarray/Find the contiguous subarray within an array (containing at least one number) which has the largest... Read More
posted @ 2015-12-28 15:14 loadofleaf Views(283) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/n-queens-ii/Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of ... Read More
posted @ 2015-12-28 14:45 loadofleaf Views(169) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/n-queens/Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each ... Read More
posted @ 2015-12-28 13:03 loadofleaf Views(240) Comments(0) Diggs(0) Edit