ByteDance / TikTokCoding·60 minMembers
Timestamped Task Scheduler
Members only
Implement a task scheduler supporting `addTask(taskID, timestamp)`, `removeTask(taskID)`, and `popTask(num)`, where `popTask` removes and returns the first `num` tasks ordered by start timestamp.
SWE
heap
scheduling
data-structure
medium
Frequency
Single report
Last asked
2026-08-20
Stage
phone-screen
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
