We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08449b8 commit 0893c1dCopy full SHA for 0893c1d
scripts/algorithms/H/H-Index/H-Index.js
@@ -1,7 +1,9 @@
1
+// Runtime: 87 ms (Top 55.41%) | Memory: 42 MB (Top 85.35%)
2
+
3
var hIndex = function(citations) {
4
citations.sort((a,b)=>b-a)
5
let i=0
6
while(citations[i]>i) i++
-
7
8
return i
-};
9
+};
0 commit comments