What is the output for this testcase?(Compilers and parsers)

testcase : ><<>>

Test-Case:

><<>>

Correct Output:

0
1 Like

for these testcases :
2
<<>>>
<><

Test-Case:

<<>>>
<><

Correct Output:

4
2

@phanikiran1999 Read the problem statement carefully and do it by yourself otherwise you won’t learn.

1 Like