Your question is Kth Largest Element. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Given an integer array nums and an integer k, return the kth largest element in the array. The kth largest element is the element that would appear in position k if the array were sorted in descending order.
You must return the value, not the index. Duplicates count as separate elements.
nums, a list of integersk, an integer with 1 <= k <= len(nums)kth largest element in numsdef find_kth_largest(nums, k):