I have tried to implement djikstra’s algo in the above code. It is giving runtime error for some test cases. I have added comments wherever possible. Please help me debug it.
Dijkstra's Algorithm
@Aditya.Jethliya
you are getting segmentation error for bigger test cases
Segmentation fault is a specific kind of error caused by accessing memory that “does not belong to you.”
You can refer this for more detail:
here is the correct approach to this