3 ms·
> 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.
by raincole 2y 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.