#3759
Count Elements With at Least K Greater Values
expert · 1115 · lc medium +32 · 31.2% accepted · 70 likes · top 9%
Description
Given an integer array nums of length n and a positive integer k, count how many elements in nums have at least k other array elements that are strictly greater than them.
Code
1
2
3