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