https://hack.codingblocks.com/contests/c/452/910
https://ide.codingblocks.com/s/33568
TLE
Generate Parentheses @hb
You have written a too large code and complicated the problem.
Have a look at my solution.
https://ide.codingblocks.com/s/33768
This is simple and is not producing TLE.
@Abhishek-Vanjani-1385688111468238 Hey how did u come up with such elegant solution
How did u Approached the problem?
Additionally, any advice for how one can come up with such an algorithm for this problem ?