Problem 22 · Medium

Generate Parentheses

Backtrack with open/close counters, appending '( when opens remain and ') when closes > opens.

Open the interactive visualisation