Jobs have dependencies: a pair (a, b) means job a must finish before job b can start. Given n jobs numbered 0..n-1 and the dependency pairs, return a valid execution order, or an empty list if the…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.