← Questions

Kth largest element in an array

0
MetaCodingLast asked Feb 2026

Return the k-th largest element of an unsorted array. Compare sorting, a size-k min-heap and quickselect, with their time and space costs.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding