in video "
Python - Backtracking | Generate Paranthesis" prateek bhaiya has written a code and given input ass 3 but in output we are not getting output as ((())) but this is a balanced parenthesis.why we are not getting this as output
Problem in balanced parenthesis
Hello @ravisheoran,
It depends on how you programmed your backtracking logic.
Can you please share a code snippet of the same. We can discuss the effect with that.
Thanks
i have not written the code but i have seen the video by prateek bhaiya and he has written a code usiing backtracking in which he has given input as 3 but not getting only 3 set of parenthesis as shown in fig below but we should also get output as ((())) which is also a balanced parenthesis but not getting into output
code snippet–>
Uploading…
video link–>
Hello @ravisheoran,
Your code is not uploaded. Kindly share it using Coding Blocks IDE if you are still facing the same problem.
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.