+ 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: ["()"]
1 Odpowiedź
+ 3
Bug resolved by my own 😄