[Solved] Kth Maximum element of Max-Heap Contest Problem
![[Solved] Kth Maximum element of Max-Heap Contest Problem [Solved] Kth Maximum element of Max-Heap Contest Problem](https://realcoder.techss24.com/wp-content/uploads/2022/06/Solved-Kth-Maximum-element-of-Max-Heap-Contest-Problem.png)
Kth Maximum element of Max-Heap: Given a max heap array mHeap of positive integers of size N and a positive integer k. The task is to find the kth maximum element of the heap. Kth Maximum element of Max-Heap Contest Problem Input:First line of input contains T, denoting the…