2 ms·
It's naive to consider your second algorithm O(1) - you're just ignoring the complexity abstracted by Counter.
by cauterized 12y ago
It's naive to consider your second algorithm O(1) - you're just ignoring the complexity abstracted by Counter.
2 ms·