DFS
Data Structures & Algorithms · 2 notes
- Remove Invalid Parentheseshistorical
Given a string s containing parentheses and letters, remove the minimum number of invalid parentheses to make the input string valid.
- Generate Parentheseshistorical
The number n represents the number of pairs of parentheses. Design a function that can generate all possible valid combinations of parentheses.