solulubeta
Sign in
NeetCode 150 / Graphs
11.08 · Problem

Course Schedule

Medium Cycle detection (topological sort) 1 video LC 207 Pro

This problem is part of solulu Pro

There are numCourses courses labelled 0 to numCourses − 1. Each pair [a, b] in prerequisites means you must take b before a. Return true if it's possible to finish every course.

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

Item 87 of 150 · updated 2026-10-12