Search
⌘K

Leetcode 3408. Design Task Manager

Implement a TaskManager supporting add, edit, remove, and execTop (execute and remove the global task with highest priority, breaking ties by larger taskId) and return its userId. The core challenge is maintaining efficient max retrieval while allowing arbitrary task updates and deletions, so you need a data structure that supports fast lookup, updates, and removals alongside priority ordering.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.