Fundamental Algorithms8 sections · 291 units
Open in CourseQuiz: State-Based Backtracking
Test your understanding
Check Your Understanding
In Generate Parentheses, why can you add ')' only when close count < open count?
- A.')' is lexicographically larger than '('
- B.Every ')' must match a previous '(' that isn't yet matched
- C.It reduces the number of recursive calls
- D.It ensures the string has even length