traverse s, get matched left and right parentheses count
dfs, delete corresponding left and right parenthese, and see if is valid
Last updated 4 years ago