Is there any way to initialize priority queue with some elements in O(N) complexity? Using the heapify algorithm possibly.
I searched about that problem but couldn't find a solution. Also, I'm aware of make_heap(), but it's another thing and not about priority queues.