Hey I have tried to run my code on a number of test cases. It seems to be fine. But i am getting WA. Can anyone please help?
https://www.codechef.com/viewsolution/31759675
Your solution fails on the following testcase:
1
<<><>>
2 Likes
thank you. I’ll try again
1 Like
I think you are overthinking about the solution, there is simple solution to the problem just read the problem statement carefully.
okay, i will
Answer should be 6, right ?
Yes