why is it showing wrong answer?
it is passing most of my custom test cases.
Link- CodeChef: Practical coding for everyone
It fails for the following test input:
1
<><
2 Likes
try this case:
1
<><
Output should be 2 but your code gives 0
1 Like
ok, Thanks, solved it!
1 Like
what should the output be for case
1
<<>
0 - none of the prefixes:
<
<<
<<>
are valid.
1 Like