in Algorithms retagged by
416 views
2 votes
2 votes

I think the options given for this questions are incorrect, i thing answer would be nk log nk, please correct me if i'm wrong.

in Algorithms retagged by
416 views

1 comment

Please don't ask test series questions directly. Instead just ask what your doubt is. Asking test series question is not good for those who have to give the test in future.
4
4

1 Answer

1 vote
1 vote
  • Build a Min Heap in $O(K)$.
  • Heapify in $(NK-K) log K = O(NK logK)$ 
by