why is it showing wrong answer?
it is passing most of my custom test cases.
Link- https://www.codechef.com/viewsolution/31979403
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