Halloween Sale
Unlock all premium questions for over 30% off
Calculate Total Round-Robin Waiting Time
Medium
Question
Each entry of the integer array arr is a task, and its value says how many hours of work that task needs. A single processor runs the tasks in round-robin order, with the queue starting at index 0: whenever a task gets its turn, it is worked on for one hour. Unfinished work sends the task to the back of the line, where it waits for its next turn in the following cycle. The processor never runs two tasks at once, and it keeps cycling until no work remains.
...
Asked at:Microsoft
More Microsoft interview questions
- Recipes From Available Ingredientseasy
- Longest Proper Prefix And Suffixmedium
- Minimum Flips for Symmetric Gridmedium
- Largest Square from Mixed Tilesmedium
- Maximize Edge Label Sum in Graphmedium
- Set Even Parity Biteasy
- Design Recent Files Trackereasy
- Build the Longest Spike Sequencemedium
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.