Fall SalePremium questions, over 25% offUnlock all premium questions for over 25% off
Maximize Tasks Scheduled Within Time Limit
Medium
Question
There are n machines, and their IDs run from 0 to n-1 with no repeats. A machine can run as many as m tasks in parallel. You are also given an integer array tasks, where tasks[i] is the number of minutes task i needs to finish. Tasks are packed into the next 60 minutes by running the fixed scheduling procedure below, and your function returns the schedule that this procedure builds.
...
Asked at:Amazon
More Amazon interview questions
- Simplified Regex Pattern Matchinghard
- Maximize Total Server Throughputeasy
- Minimum Initial Battery Leveleasy
- Custom Alphabet String Sortingeasy
- Password Similarity Checkmedium
- Pascal Triangle Digit Encryptioneasy
- Maximum Server Set Stabilitymedium
- Bring Down All Serversmedium
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.