2 ms·
Yes. Pedantically speaking his solution may be faster for the pathological case of the input consisting almost entirely of duplicates.
by moe 12y ago
Yes. Pedantically speaking his solution may be faster for the pathological case of the input consisting almost entirely of duplicates.