i want to generate parenthesis but it gives me some random output! | Sololearn: Learn to code for FREE!
+ 3

i want to generate parenthesis but it gives me some random output!

Can anybody check my code and please suggest me to do some changes for my expected output? Please check my code and find issue? https://code.sololearn.com/c9MCNzYPCMSP/?ref=app My expected outputs: Input: n = 3 Output: ["((()))","(()())","(())()","()(())","()()()"] Input: n = 1 Output: ["()"]

8th Dec 2022, 5:39 AM
Rajeev Sharma
Rajeev Sharma - avatar
1 Antwort
+ 3
Bug resolved by my own ­čśä
8th Dec 2022, 8:57 AM
Rajeev Sharma
Rajeev Sharma - avatar