Please help me in SNAKEAT

help
binary
search
snackdown
snakeeat
wa

#1

can anyone tell me why im getting WA in SNAKEEAT problem in snackdown_17 qualifier even i runned it on 100 of test cases and even on correct solutions i used random test cases and get same answer for my code and accepted solutions! here is the link to my code link text…thanks in advance please let me know if it is failing for any edge case.