Problem Link
Can u plz help why my code is not working ?
my code>>
Leetcode Problem
hello @joshisanjay8467
a)
u missed that in the given input ( and ) is also given.
so the actual string is [1…n-2] . remove ( and ) from the given string.
b) when u are splitting at some point then make sure that there is element in both the side. if anyone of the side will be empty then in that case it will produce wrong result
I solved it and have already closed the doubt but still thankyou for responding
oh okay, it was still showing in the active doubts thats why i responded.
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.