274.h-index

Sort then iterate, runtime 97.36%

Xu LIANG
LeetCode Cracker
2 min readApr 6, 2019

--

Solution 1: sort then iterate

Some points:

The code:

Solution 2: sort then iterate

--

--

Xu LIANG
LeetCode Cracker

I’m an engineer focusing on NLP and Data Science. I write stuff to repay the engineer community. You can find me on linkedin.com/in/xu-liang-99356891/