Task Scheduler
Given tasks array (letters A-Z) and cooling period n Find minimum CPU intervals to complete all tasks Same task must wait at least n intervals before repeating Example: tasks = ["A","A","A","B","B","B"], n = 2 => 8 Sequence: A -> B -> idle -> A -> B -> idle -> A -> B
This one rewards reaching for a priority queue instead of repeatedly sorting or scanning. Interviewers love it because it reveals your priority-based reasoning and your edge-case discipline. Interviewers watch whether you keep your heap in sync as inputs evolve.

Meet Coco
Coco is an AI study partner, not a person. She listens while you explain your code, asks what a line does and never hands you the fix. Typing with Coco is free when you sign in, up to a daily limit. Talking with her out loud comes with the $79 pack. Anyone can open the editor and run their code.