Jounrny to moon

getting wrong anwer

want to know whats wrong in my code

and something is wrong then how to dot it in correct in right way.

I can’t find this question in your course content, please ask relevant questions related to your course.

in the graph course, this question has a video in the lecture, and in the lecture, this question is taken from hackerrank. pls, look into the video that that’s why I practiced this question over there.

i am not able to get the logic of your code, please post a separate doubt if you want to know the issue in your code, so that other TA can help you.
If you want reference code, you can see it here

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.