mirror of
https://github.com/Hizenberg469/Algorithms-snippets.git
synced 2026-04-19 22:52:23 +03:00
Binomial Coefficient
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
for(int k = 1 ; k <= n ; k++ ){
|
||||
for(int i = 1 ; i <= n ; i++ ){
|
||||
for(int j = 1 ; j <= n ; j++ ){
|
||||
dist[i][j]=min(dist[i][j],dist[i][k]+dist[k][j]);
|
||||
}
|
||||
}
|
||||
for(int k = 1 ; k <= n ; k++ ){
|
||||
for(int i = 1 ; i <= n ; i++ ){
|
||||
for(int j = 1 ; j <= n ; j++ ){
|
||||
dist[i][j]=min(dist[i][j],dist[i][k]+dist[k][j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user