Hacker News new | ask | show | jobs
by raincole 699 days ago
> Auxiliary Space : O(n).

> The Space required to store the elements in Heap is O(n).

I don't think this algorithm is suitable for trillions of items.