Problem with code (BRACKETS)

i am trying to solve to balanced parenthesis like problem but getting error against hidden case while someone else used a similar approach as of me and got AC

problem link:


AC sol. :
https://www.codechef.com/viewsolution/27945914
My solution:
https://www.codechef.com/viewsolution/27979267

input
2
()
()
your output
()()
correct output
()
()
:slight_smile:

1 Like