Search
⌘K

Leetcode 3156. Employee Task Duration and Concurrent Tasks

Given a list of tasks with employee IDs and start/end timestamps, compute per-employee total task durations and global concurrency metrics (e.g., maximum concurrent tasks or total time with at least k workers) while correctly handling overlapping intervals. The core challenge is efficient interval merging and counting overlaps at scale, typically solved with sweep-line events, coordinate compression, or segment trees.


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.