Skip to content

Commit

Permalink
Update h-index-ii.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jeantimex committed Oct 18, 2018
1 parent 3461b2e commit 08c6bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/array/h-index-ii.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const hIndex = citations => {
}
}

return n - 1 - hi;
return n - lo;
};

export { hIndex };

0 comments on commit 08c6bb9

Please sign in to comment.