Skip to content

Commit

Permalink
Update maximal-network-rank.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 authored Oct 13, 2020
1 parent 446fd2a commit 39b1f58
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions C++/maximal-network-rank.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ class Solution {
}
vector<int> sorted_idx(n);
iota(begin(sorted_idx), end(sorted_idx), 0);
sorted_idx= counting_sort(sorted_idx,
[&degree](const auto& x) {
return degree[x];
},
true);
sorted_idx = counting_sort(sorted_idx,
[&degree](const auto& x) {
return degree[x];
},
true);
int m = 2;
for (; m < n; ++m) {
if (degree[sorted_idx[m]] != degree[sorted_idx[1]]) {
Expand Down

0 comments on commit 39b1f58

Please sign in to comment.