Y
Hacker News
new
|
ask
|
show
|
jobs
by
moe
4364 days ago
Yes. Pedantically speaking his solution may be faster for the pathological case of the input consisting almost entirely of duplicates.