ephremdeme / data-structure-and-algorithms

Implement most data structures and algorithms in different programming languages.
Apache License 2.0
50 stars 145 forks source link

Create Dijkstra_algo.cpp #262

Closed arpitnits closed 3 years ago

arpitnits commented 3 years ago

In this algorithm, we use the vis[] array to mark the nodes visited and distance[] array to calculate the distance to each node. Node are from 1....N