We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 334fb7d commit 79d40fbCopy full SHA for 79d40fb
dynamic_programming/floyd_warshall.cpp
@@ -38,7 +38,7 @@ class Graph {
38
};
39
40
// Utility function to print distances
41
-void print(const std::vector<int> dist, int V) {
+void print(const std::vector<int>& dist, int V) {
42
cout << "\nThe Distance matrix for Floyd - Warshall" << endl;
43
for (int i = 0; i < V; i++) {
44
for (int j = 0; j < V; j++) {
0 commit comments