301. Remove Invalid Parentheses
301. Remove Invalid Parentheses
Description
Given a string s
that contains parentheses and letters, remove the minimum number of invalid parentheses to make the input string valid.
337. House Robber III
1087. Brace Expansion
1472. Design Browser History
68. Text Justification
1146. Snapshot Array
1329. Sort the Matrix Diagonally
1329. Sort the Matrix Diagonally
Description
A matrix diagonal is a diagonal line of cells starting from some cell in either the topmost row or leftmost column and going in the bottom-right direction until reaching the matrix’s end. For example, the matrix diagonal starting from mat[2][0]
, where mat
is a 6 x 3
matrix, includes cells mat[2][0]
, mat[3][1]
, and mat[4][2]
.