here is the link please debugg the code and try to send the corrected code so that i can solve it
please send the corrected link so it passes in all test cases
My code is failing in some test cases
here is the link, but do not refer to it
follow the approach I am telling you, if you simply look at the code it is of no use
push everything into stack except ‘)’ when u encounter ‘)’ store the top of stack and then pop it
now run a while loop till u hit ‘(’ inside the loop, pop the elements of the stack and increase a counter initialised to zero, if the counter at the end of the while loop>0 then it is not duplicate else it is duplicate
Hi @harryson,
Here is the correct code to the problem.
U can refer to it and in case if u still have any queries, feel free to post them here.
Hope dis resolves ur doubt.
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.