摘要:
Description: Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. Example: Solution: 这道题和那道:LeetCod 阅读全文
摘要:
Description: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represen 阅读全文
摘要:
Description: 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: Solution: 阅读全文
摘要:
Description: Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. 阅读全文