+ 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
1 Odpowiedź
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