Kth Largest with Quickselect

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • medium
  • Pro

Given an unsorted list and a number k, find the kth largest element without fully sorting the list. Explain quickselect and compare it with using a heap.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →