Courses have prerequisites; return an order in which all of them can be taken, or an empty list when a cycle makes it impossible. LeetCode 210, rephrased in a Waymo phone screen.
Courses have prerequisites; return an order in which all of them can be taken, or an empty list when a cycle makes it impossible. LeetCode 210, rephrased in a Waymo phone screen.
The discussion opens with the full question.