What is wrong in this code it is giving wrong answer in testcase 4
Balanced Parenthesis
@dsingh200021 Constraints: 1<=|S|<=10^5, so first increase the size of character array and then check. If still it gives wrong answer then let me know.
@dsingh200021 Also you are going wrong somewhere in the switch-case statements you have written in your code:
Consider the Input:
{)
Output should be βNoβ but your code is giving βYesβ.
Hope this helps. 