2 ms·
> That's what the author called "alt" and I don't understand why the author objects to it. The memory needed is usually proportional to the number of distinct e
by masklinn 8y ago
> That's what the author called "alt" and I don't understand why the author objects to it. The memory needed is usually proportional to the number of distinct elements in the original array.
Possibly the high constant cost, making them less than optimal for short sequences?