chef and sign sequences

//this program is working all well in my computer and to all the questions i can think about
//but when i submit it,it shows wrong answer ,can an
link -
www.codechef.com/viewsolution/14620289

For <<><<<, your code gives solution 5, when solution is 4.

1<2<3>1<2<3<4

1 Like

thanks bro