not able to pass 2 of the test cases
If brackets r balanced
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.