Halloween Sale
Unlock all premium questions for over 30% 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
- Count Days For Scheduled Task Completionseasy
- Find Longest Node Path In DAGhard
- Reduce Array To Bitonicmedium
- Make Server Power Non-decreasingeasy
- Student Reading Textbook Chaptersmedium
- Maximum Sprint Points In Windowmedium
- Maximum Combined Server Healthmedium
- Count Redundant Substringsmedium
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.