NeetCode #532LC-215MediumHeap / Priority QueueNC 150NC 250
← Back to All Problems

#532 · #215 · Kth Largest Element in an Array(数组中的第 K 个最大元素)

📌 Problem Statement & Constraints

Given an integer array nums and an integer k, return the k-th largest element. Constraints: 1 <= k <= nums.length <= 10^5, -10^4 <= nums[i] <= 10^4. The follow-up asks for O(n) average time.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!