I did a dry run but am unable to find a mistake. Can someone please help.
problem : https://hack.codingblocks.com/app/contests/1941/709/problem
my code : https://ide.codingblocks.com/s/371190
Balanced Parenthesis
hey @arunimakhanna11 you forgot to save your code, it’s just simple c++ template while opening your code link. Please check
i have debugged your code here https://ide.codingblocks.com/s/371196, but it won’t pass all the test cases. as you can for
Input: (()())
It’s giving output: No
But it’s a valid parantheses
Take reference from this
https://github.com/DivonilLiquid/Data-Structure-Algorithm/blob/master/Stack/ValidParentheses.cpp
1 Like
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.