Skip to content

Commit e35fa42

Browse files
committed
Update h-index.cpp
1 parent d32677b commit e35fa42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

C++/h-index.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class Solution {
88
const auto n = citations.size();
99
vector<int> count(n + 1, 0);
1010
for (const auto& x : citations) {
11+
// Put all x >= n in the same bucket.
1112
if (x >= n) {
1213
++count[n];
1314
} else {

0 commit comments

Comments
 (0)