Snakes and Ladders Problem

Code link : https://ide.codingblocks.com/s/379952

Please check my code, it works fine on my machine, but tells run time error here…!

hello @shivanshu12800
check now->

only one test case passed …test case 0 failed

check now->

u missed -1 case.

yup, it resolved !!..Thank you

ok, then i m closing this thread.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.