Shortest Path HomeWork

Please check if the code for the shortest path homework can be improved upon. (Programming Fundamentals - 2).
My code:- https://ide.codingblocks.com/s/350285

Hey @yashjain0112 your code goes in O(nk) complexity, therefore it’s a good implementation. Good work :slight_smile:

Thank you! Found an error though, rectified it. Now it should work for any input!

Good work @yashjain0112