AlgoMaster Logo

Generate Parentheses

n=2
0 / 18
Step:Generate all 2^4 strings of length 4, keep the balanced ones.