最新 最热

LeetCode 0221 - Maximal Square

Given a 2D binary matrix filled with 0’s and 1’s, find the largest square containing only 1’s and return its area.

2021-08-11
1

LeetCode 0240 - Search a 2D Matrix II

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

2021-08-11
1

LeetCode 0304 - Range Sum Query 2D - Immutable

Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2, col2).

2021-08-11
0

LeetCode 0329 - Longest Increasing Path in a Matrix

Given an integer matrix, find the length of the longest increasing path.

2021-08-11
0

LeetCode 0363 - Max Sum of Rectangle No Larger Than K

Given a non-empty 2D matrix matrix and an integer k, find the max sum of a rectangle in the matrix such that its sum is no larger than k.

2021-08-11
1

LeetCode 0378 - Kth Smallest Element in a Sorted Matrix

Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix.

2021-08-11
1

LeetCode 0085 - Maximal Rectangle

Given a 2D binary matrix filled with 0’s and 1’s, find the largest rectangle containing only 1’s and return its area.

2021-08-11
0

LeetCode 0073 - Set Matrix Zeroes

Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.

2021-08-11
0

LeetCode 0074 - Search a 2D Matrix

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

2021-08-11
1

LeetCode 0059 - Spiral Matrix II

Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.

2021-08-11
0