leetcode讲解--566. Reshape the Matrix

2019-01-02
阅读 2 分钟
1.6k
In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data.

leetcode讲解--766. Toeplitz Matrix

2018-12-30
阅读 2 分钟
1.7k
A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element.

leetcode讲解--885. Spiral Matrix III

2018-12-26
阅读 3 分钟
1.8k
On a 2 dimensional grid with R rows and C columns, we start at (r0, c0) facing east.

leetcode讲解--867. Transpose Matrix

2018-12-26
阅读 1 分钟
1.4k
The transpose of a matrix is the matrix flipped over it's main diagonal, switching the row and column indices of the matrix.

leetcode讲解--861. Score After Flipping Matrix

2018-12-24
阅读 3 分钟
2.2k
A move consists of choosing any row or column, and toggling each value in that row or column: changing all 0s to 1s, and all 1s to 0s.

leetcode讲解--944. Delete Columns to Make Sorted

2018-12-17
阅读 2 分钟
2k
We are given an array A of N lowercase letter strings, all of the same length.