advanced
Challenge: the kth largest in a stream
Implement this from the stub. Hidden tests grade the behaviour you write, not the comments you leave.
Challenge: The Kth Largest in a Stream
export class KthLargest {
constructor(k: number, initial: number[]) {
// Your implementation here
}
add(value: number): number {
// Your implementation here
}
}challenge — implement from scratchCtrl+↵ submits · Ctrl+Shift+↵ runsstarter code