InterviewDB
Question
Timers - Implement a Cancelable Delayed Execution Queue
phone
Question Details
Problem Implement a TimerQueue class that schedules callbacks to run after a specified delay. It must support cancellation. Expected behavior: Follow-ups How do you implement this using a min-heap to efficiently find the next timer to fire? What is t…
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Coding
Phone