solulubeta
Sign in
NeetCode 150 / Graphs
11.09 · Problem

Course Schedule II

Medium Topological sort (Kahn's algorithm) 1 video LC 210 Pro

This problem is part of solulu Pro

Same setup as Course Schedule: [a, b] means take b before a. Return an order in which you can take all courses. If several orders work, return any of them; if it's impossible, return an empty array.

Lifetime ₹1,999 ₹999 · Launch offer
Mark this problem as solved when you are finished.

Item 88 of 150 · updated 2026-10-12