I’ve been trying to implement Dijkstra’s algo, but i’m getting an MLE in test case 31.
Here’s my code : My Submission
Here’s the problem statement : C - Dijkstra?
Can you please help me with this? How can I resolve this MLE issue??
Am I getting the MLE because of the HashMap? Will some other data structure work?