Amazon logoAmazon
Coding·45 minMembers

Maximum Concurrent Processes from Intervals

Members only

Given process running intervals such as `[1,3]`, `[2,5]`, `[3,6]`, return the maximum number of processes running at the same time. Sweep-line endpoint ordering is the main edge case.

SWE
interval
interval-aggregation
sorting
medium
Frequency
Single report
Last asked
2026-07-02
Stage
onsite-coding

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...