6 ms·
i did it does a ton of allocations, which is why i made a simple maxheap implementation and then sort the final result
by lunaticd 2y ago
i did it does a ton of allocations, which is why i made a simple maxheap implementation and then sort the final result