Page 1 of 1

why wa in DCP-412: Black cat and Jumping Power

PostPosted: Wed Jan 17, 2018 3:27 pm
by shawonchy123
i dont why i am getting wa in https://www.devskill.com/CodingProblems/ViewProblem/412
and my code is :https://pastebin.com/UUjsNqCi
help needed

Re: why wa in DCP-412: Black cat and Jumping Power

PostPosted: Thu Jan 18, 2018 9:35 am
by BishalG
Please make sure that you have written "return 0" condition at proper place.
After that, consider the following case:
1
0 8 2