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

Dev Skill archived problems can be discussed here.

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

by shawonchy123 » Wed Jan 17, 2018 3:27 pm

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
 
Posts: 2
Joined: Wed Jan 17, 2018 3:20 pm

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

by BishalG » Thu Jan 18, 2018 9:35 am

Please make sure that you have written "return 0" condition at proper place.
After that, consider the following case:
1
0 8 2
User avatar
 
Posts: 43
Joined: Tue Jan 17, 2017 10:10 pm


Who is online
Users browsing this forum: Bing [Bot] and 1 guest
cron