โ† Hike questions

Find the second, third, and k-th largest element in an array

Filed under Hike

The question

Write code to find the second largest element in an unsorted array, and extend the approach to efficiently find the 3rd and k-th largest elements.

No write-up yet. Related questions below have one.

Related Hike questions

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