Algorithm · Stripe · Medium
Deployment Window Scheduler Consider a single week that lasts exactly 10,080 minutes. Moments in the week are expressed as integer minute offsets, where 0 marks the start of the week and 10080 marks the start of the following week. You receive a list of n scheduling rules, each written as: with these properties: 0 made up of deployable minutes. Input Format n is the number of rules, followed by one rule per line. The output intervals must be sorted by startTime. Output…