Given an integer array nums and integer k, return the kth largest element.
Input: nums=[3,2,1,5,6,4], k=2 Output: 5 Input: nums=[3,2,3,1,2,4,5,5,6], k=4 Output: 4
Unlock hints progressively β start gentle, go deeper only if needed.
Level 1: Gentle Nudge
A subtle direction
Level 2: Approach
The algorithm to use
Level 3: Detailed
Step-by-step guidance
to save progress and use AI features