Need help in Bobs and Cookies - Encoding April 2020

Following is my solution in Python
https://www.codechef.com/viewsolution/32335068

I m getting Run time error, again and again, can’t figure out where is the problem. I am using Dijkstra Algo and storing the steps from the previous node.
Please help me
@panik @kabeer27 @chaudhary_19

1 Like