# [LeetCode 59] Spiral Matrix II [Java]

**2018-01-31

1. Description Given an integer n, generate a square matrix filled with elements from 1 to n^2 in spiral order. 2. Example Given n = 3, You sh...

1. Description Given an integer n, generate a square matrix filled with elements from 1 to n^2 in spiral order. 2. Example Given n = 3, You sh...

1. Description Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother to make the gray scale of each ce...

1. Description In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep ...

1. Description Given an m * n matrix M initialized with all 0's and several update operations. Operations are represented by a 2D array, and each o...

1. Description You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). 2. Runtime Distribution 3. Subm...

1. Description Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in eac...

1. Description Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. 2. Runtime Distribution 3....

1. Description Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. 2. Runtime Distribution 3. Submission...