Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

rahul_1234's blog

By rahul_1234, history, 9 years ago, In English

Hi,

Given a max-heap represented as an array, return the kth largest element without modifying the heap. Pleaae provide an algorithm which is most optimised. There are few answers on net but I guess most are following a particular structure of heap, so I want a correct answer.

  • Vote: I like it
  • -9
  • Vote: I do not like it