Generate paranthesis? i don't kknow what i am doing wrong
@sarthaksingh the logic you used is one of the best I’ve ever seen. Yes, your code is giving all the correct outputs, but not in the order which has been set on the hackerblock site. The output of your code starts varying from the expected answer as the value of input number increases. So I’d like you to use the following code for correct answer. Don’t worry about the logic of your approach, it’s perfectly fine.
Hope this helps.