10986

Single source shortest path algorithm and priority_queue used to solve the problem.

 

Leave a Reply

Your email address will not be published. Required fields are marked *