‹ All notes
Amazon

Amazon New Grad Interview Question: TaskScheduler, Fully Analyzed (Topological Sort)

Breaking down Amazon's frequent new-grad OOD question TaskScheduler: model task dependencies as a DAG, use Kahn's topological sort (in-degree + BFS) for the execution order, detect dependency cycles and raise an exception, with a runnable reference implementation.

Amazon
VO

Found this helpful? Let's talk.

Happy to swap interview notes, do mock interviews, or share referral info.

More Amazon notes

View all ›