#215

Kth Largest Element in an Array

medium· Heap / Priority Queueruns: 0

Given an integer array nums and an integer k, return the kth largest element in the array. The kth largest element is the value at the kth position in the sorted (descending) array, not the kth distinct value.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.