Code test cases failed

def generateParanthesis(openB,closeB,n,s=[]):

if(closeB==n):

print(''.join(s)) return else: if(closeB<openB): s.append(')') generateParanthesis(openB,closeB+1,n,s) s.pop() elif(openB<n): s.append('(') generateParanthesis(openB+1,closeB,n,s) s.pop() elif(n<0): return return

Hey @pra6305, can you please share the online IDE link of your code ? …It is difficult to understand it from here.

Thanks ! :+1:

Hey @pra6305, you need to take input from the user in this code. Please read the question again and try to follow the input format !

I hope this helps you understand :+1:
Happy coding :slight_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.