2 ms·
I'm wondering what heap approach can solve that problem, as I can't think of any. Hopefully OP got a link to the thesis. The n log n approach definitely works
by osti 2y ago
I'm wondering what heap approach can solve that problem, as I can't think of any. Hopefully OP got a link to the thesis.
The n log n approach definitely works though.