169.majority-element

sort, runtime 99.5%

Xu LIANG
LeetCode Cracker
1 min readApr 6, 2019

--

Solution 1: Counter

Solution 2: defaultdict

Solution 3: sort

--

--

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/