Concept Flow - Kth Largest Element Using Max Heap
Build Max Heap from array
Extract max element (root)
Replace root with last element
Heapify to restore max heap
Repeat extraction k times
Last extracted element is kth largest
Build a max heap from the array, then remove the largest element k times. The last removed element is the kth largest.
