MEDIUMasked at 4 companies

Task Scheduler II

A medium-tier problem at 54% community acceptance, tagged with Array, Hash Table, Simulation. Reported in interviews at Remitly and 3 others.

Founder's read

Task Scheduler II is a medium-difficulty simulation problem that drops into live assessments at Remitly, Nvidia, Duolingo, and DoorDash. Half the candidates who attempt it fail to produce a working solution under pressure. The problem looks deceptively simple on first read: you have tasks with cooldown periods, and you need to schedule them optimally. The trick isn't obvious until you hit the edge cases. If you blank on the pattern during your live OA, StealthCoder runs invisibly and surfaces a working implementation in seconds, no proctor visibility.

Companies asking
4
Difficulty
MEDIUM
Acceptance
54%

Companies that ask "Task Scheduler II"

If this hits your live OA

Task Scheduler II is the kind of problem that decides whether you pass. StealthCoder reads the problem on screen and surfaces a working solution in under 2 seconds. Invisible to screen share. The proctor sees nothing. Made by a working FAANG engineer who treats the OA the way companies treat hiring: as a game with rules you should know.

Get StealthCoder
What this means

The naive approach usually fails because candidates try to greedily schedule or use a simple queue without tracking cooldown windows correctly. The real solution requires tracking task frequencies, simulating the timeline, and understanding when tasks can actually be executed based on their cooldown constraints. You'll likely need a hash table to store task counts and an array or priority queue to manage execution order. Many candidates miss that the optimal strategy isn't always 'do the most frequent task first' when cooldowns interact with task counts. The simulation itself is straightforward once you see the pattern, but getting there under interview pressure is where most slip. StealthCoder's hedge here is that if you freeze on how to structure the cooldown logic, a correct solution appears instantly on your screen.

Pattern tags

The honest play

You know the problem. Make sure you actually pass it.

Task Scheduler II recycles across companies for a reason. It's medium-tier, and most candidates blank under the timer. StealthCoder is the hedge: an AI overlay invisible during screen share. It reads the problem and surfaces a working solution in under 2 seconds. Made by a working FAANG engineer who treats the OA the way companies treat hiring: as a game with rules you should know. Works on HackerRank, CodeSignal, CoderPad, and Karat.

Task Scheduler II interview FAQ

Is Task Scheduler II actually harder than Task Scheduler I?+

Yes, materially. Task Scheduler II adds complexity around task dependencies and cooldown windows that require careful state management. The acceptance rate of ~54% reflects real difficulty. If you've only drilled Scheduler I, don't assume Scheduler II will feel familiar once you read the prompt.

What's the most common mistake candidates make?+

Not properly simulating the cooldown window. Many try to calculate idle time upfront or use a greedy approach that breaks when multiple tasks have similar frequencies. You need to track when each task *becomes available again*, not just count idle slots. Hash table lookup is critical here.

Do I need to know advanced data structures for this?+

No advanced structures required, but you do need to be comfortable with hash tables and basic simulation loops. Some solutions use heaps for priority ordering, but that's optional. The core is state management and timeline simulation, both achievable with arrays and maps.

Is this still being asked at these companies?+

Yes. Remitly, Nvidia, Duolingo, and DoorDash all report asking it. Given it's medium difficulty and tests practical scheduling logic, it fits well into their phone-screen or early-round filters. Recent reports confirm it's still in rotation.

How does Task Scheduler II relate to the Array and Hash Table topics?+

You use hash tables to count task frequencies and track cooldown windows. The array or simulation loop processes tasks in order. It's a clean test of combining both structures to model a real constraint-satisfaction problem under time pressure.

Want the actual problem statement? View "Task Scheduler II" on LeetCode →

Frequency and company-tag data sourced from public community-maintained interview-report repos. Problem, description, and trademark © LeetCode. StealthCoder is not affiliated with LeetCode.