i want to generate parenthesis but it gives me some random output! | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
+ 3
Bug resolved by my own 😄
8th Dec 2022, 8:57 AM
Rajeev Sharma
Rajeev Sharma - avatar