Fixed in 297729300
The issue is that when this is executed:
if(s[j]=='0') {cnt++; j++;}
j may be out of bounds.
Fixed in 297729300
The issue is that when this is executed:
j may be out of bounds.