题目来源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
题目来源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
题目来源https://leetcode.com/problems/spiral-matrix/Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.题意分析I... Read More
题目来源https://leetcode.com/problems/maximum-subarray/Find the contiguous subarray within an array (containing at least one number) which has the largest... Read More
题目来源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
题目来源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