Refer to the code below: -
Two failed test cases
Hey @ambuj_0909
At the end, after iterating over the string, you need to check whether or not the stack is empty at the end. If stack is not empty you’ve to return false, else true.You need to handle this thing in your code.
1 Like