hardStudy question · answer published in Data Structures and Algorithms interview questions, so no pointsdynamic-programminggreedy
CPU tasks with a cooldown
Tasks are A, A, A, B, B, B, and the same task needs at least 2 slots between runs. What is the fewest total slots, including idle ones?
Discussion 0
Join free to post in the discussion.
Related questions
- Signs that a problem suits DPBackend Developer
- What memoisation meansBackend Developer
- What tabulation meansBackend Developer
- Cost of plain recursive FibonacciBackend Developer
- Fibonacci after adding a cacheBackend Developer
- Recursion with no base caseBackend Developer
- Ways to climb five stairsBackend Developer
- Hidden memory cost of recursionBackend Developer