If brackets r balanced


not able to pass 2 of the test cases

hey @Saransh99, there is small mistake in your code that i have corrected and indicate in comment.
https://ide.codingblocks.com/s/106890 But it still won’t pass all testcases beacuse you need consider 2 other types of bracket which are mentioned in problem statement. Please modify your code these brackets too.

baki 2 brackets k liye alag se 2 aur function banau?

hey @Saransh99, no need to make separate brackets, just mentioned them with ( using or operation.
example: change if(ch==’(’) to if(ch==’(’ || ch==’[’ || ch==’{’). make changes like this on other lines also.