A 3-round loop process with:
You are part of a university admissions office and need to keep track of the kth highest test score from applicants in real-time. This helps to determine cut-off marks for interviews and admissions dynamically as new applicants submit their scores.
You are tasked to implement a class which, for a given integer k, maintains a stream of test scores and continuously returns the kth highest test score after a new score has been submitted. More specifically, we are looking for the kth highest score in the sorted list of all scores.
Implement the KthLargest class:
Example 1: Input: ["KthLargest", "add", "add", "add", "add", "add"] [[3, [4, 5, 8, 2]], [3], [5], [10], [9], [4]]
Output: [null, 4, 5, 5, 8, 8]
The following metrics were computed from 11 interview experiences for the Amazon SDE 1 role in Hyderābād, Telangana.
Amazon's interview process for their SDE 1 roles in Hyderābād, Telangana is extremely selective, failing the vast majority of engineers.
Candidates reported having very good feelings for Amazon's SDE 1 interview process in Hyderābād, Telangana.