Skip to content

Commit b770021

Browse files
committed
Revise a comment in FindHIndex
1 parent de5df18 commit b770021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/FindHIndex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public int hIndex(int[] citations) {
1010
frequency[index]++;
1111
}
1212

13-
// Start from right to left for finding maximum index faster
13+
// Go from right to left to find the maximum h-index
1414
int sum = 0;
1515
for (int i = frequency.length - 1; i > 0; i--) {
1616
sum += frequency[i];

0 commit comments

Comments
 (0)