Why my code is not working good ? It is not updating values . | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why my code is not working good ? It is not updating values .

https://code.sololearn.com/cgMPZaWaWQOU/?ref=app

13th Dec 2022, 11:38 AM
Abhay mishra
Abhay mishra - avatar
2 Answers
0
Your code doesn't throw any error. Please don't spam. Read the community rules and don't break them
13th Dec 2022, 4:14 PM
Knight
Knight - avatar
0
It is not giving the output that i want . It is giving all parent of node as -1 which is neither correct not accepted. So i posted it . Am i wrong ?
13th Dec 2022, 9:14 PM
Abhay mishra
Abhay mishra - avatar