Please debug my code aman bhaiya


pls resolve my doubt

hello @harryson

image

in input we dont have space, so we cant read them as int becuase complete row will be treated as single number which we dont want
make ur array as char and then try.

if it fails then share ur updated code link with me

@harryson

check ur updated code here

another mistake->
u r allowed to move only in four directing(up ,down ,left ,right)
but u were moving diagnonally as well

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.