Note this is not my experience, this is from leetcode discuss section.
Find the K-th greatest element for every subarray ranging from size K to N.
Can the constraints have n<=100000 ?
This is from an Interview experience at Salesforce.
https://leetcode.com/discuss/post/6857467/salesforce-interview-experience-lmts-apr-a9rw/
Comments (4)


