Design Task Manager

Design a TaskManager. Each task is represented by [userId, taskId, priority], and every taskId is unique.

Implement the following operations:

  • TaskManager(tasks): Initialize the manager wit...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: