mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-01 17:52:40 +08:00
Add files via upload
This commit is contained in:
@@ -45,7 +45,7 @@ public:
|
||||
//Utility function to find minimum distance vertex in mdist
|
||||
int minDistance(int mdist[], bool vset[], int V)
|
||||
{
|
||||
int minVal = mdist[0], minInd = 0;
|
||||
int minVal = INT_MAX, minInd = 0;
|
||||
for(int i=0; i<V; i++)
|
||||
{
|
||||
if(!vset[i] && (mdist[i] < minVal))
|
||||
|
||||
Reference in New Issue
Block a user