Generating paranthesis

my code isn’t getting submitted. when i run it work well but when i submit it the language automatically changes from “python3” to “C++”, executing that all test cases fail.

Helllo @Ishika_jain,
The language is not getting changed to C++ the program gets submitted on python only, its just a technical glitch or u can say technical constraint only that it gets changed to c++. Your code is getting submitted in python language only. Also if its showing wrong answer then its because of your Algorithm. You need better algorithm to pass all the test cases.
Happy Learning :slight_smile:
Thanks

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.