What is error in my code?
For input
1
<<<><<
Your code generates output 5
But correct output is 4
1<2<3<4>1<2<3
Hint:Find the length of longest continuous sequence of ‘<’ or ‘>’ without ‘=’ sign
For input
1
<<<><<
Your code generates output 5
But correct output is 4
1<2<3<4>1<2<3
Hint:Find the length of longest continuous sequence of ‘<’ or ‘>’ without ‘=’ sign