Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add cs solution to lc problem: No.2642 #1953

Merged
merged 4 commits into from
Nov 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
style: format code and docs with prettier
  • Loading branch information
dev-mauli authored and idoocs committed Nov 11, 2023
commit a13033e463e3a29b4645d4bf336506236d27aa65
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,11 @@ public class Graph {
g[e[0]][e[1]] = e[2];
}
}

public void AddEdge(int[] edge) {
g[edge[0]][edge[1]] = edge[2];
}

public int ShortestPath(int node1, int node2) {
int[] dist = new int[n];
bool[] vis = new bool[n];
Expand Down