Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 837 Bytes

concurrent-learners.md

File metadata and controls

25 lines (19 loc) · 837 Bytes

Concurrent Learners

A popular type of learning available though Go1 is watching streamed videos. Learners view videos as streams from our CDN (content delivery network).

For this challenge, we'll be looking at when streams are being watched based on start time and end time. The dataset contains a list of user IDs, start and stop timestamps for each stream watched.

We're interested in knowing what was the maximum number of concurrent streams within the dataset. A stream is concurrent with another when the start and end times over lap.

Return the maximum number of concurrent streams.

Example input:

[
    ["User_001", 0, 1000],
    ["User_002", 500, 2000],
    ["User_003", 2500, 3000],
    ["User_004", 400, 1400]
]

Example output:

"The maximum number of concurrent streams is 3."