← Microsoft questions

Find kth largest element in an array

Filed under Microsoft · Also reported at Newgen Software

Given an unsorted array of integers, write a function to find the kth largest element in the array. Implement an optimal solution and write custom heap operations from scratch rather than relying on…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.