Recursion-IsBalanced

https://hack.codingblocks.com/contests/c/457/351
https://ide.codingblocks.com/s/46730

only 3 test cases passed out of 5!

Hey Preesh, you code is always giving true for not balanced strings also. check for these cases:
input:
[a + {b + (c + d) + e}) + f]
output should be : false
input:
[a + {b + c + d) + e}) + f]
output should be : false

1 Like