DOUBT FOR CODE SUBMISSION TEST CASES GONE WRONG ALTHOUGH ANSWER IS CORRECT
hello @dhruv.mahajan.mait
a) u need to print s only if answer us yes
b) this should be ur condition for breaking s<k
c) if u r on last cell of row then in that case u dont have to decrement 1.
check this->
His strength should always be greater than K while traversing or else Piyush will get lost.
ITS MENTIONED IN THE QUESTION .
on a particular cell his strength should be atleast k.

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.