need some hint how to approach this using stl .
@S18LPC-OL0078 take a look here https://codingblocks.com/resources/dijkstra/