Question link - link text
solution link -link text
I want to know why i am getting segmentation fault on answer where my code is working for smaller input.
It work on on dijkistra algo and code help is from geeksforgeeks code link https://www.geeksforgeeks.org/printing-paths-dijkstras-shortest-path-algorithm/
for more test cases refer to hackerrank https://www.hackerrank.com/contests/w38/challenges/a-time-saving-affair/submissions/code/1308366537
And this question form hackerrank week of code 38