Algorithm · ByteDance · Medium
Task Scheduler Easy · Topics · Company Tags · Hints Design a scheduler that supports three operations for managing tasks. Each task has a unique identifier and a scheduled start time. addTask(taskID, timestamp) – registers a task with the given identifier and start time. If an entry with the same taskID already exists, it is replaced with the new timestamp. removeTask(taskID) – deletes the task having the specified identifier. If no such task exists, the operation does…
Checking your access…