Hello everyone.
Can someone help me with this problem?
I tried a BFS approach but is getting TLE.
Please give me some hints, thanks.
I solved it using A* algorithm, though runtime is not particularly impressive so intended solution is probably different or has more accurate cost heuristic function.