---
title: "Discussion on \"Course Schedule 2\" | Hashnode"
description: "Discussion on \"Course Schedule 2\". Problem\nThere are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites[i] = [ai, bi] indicates that you must take course bi first if you want to take course ai.\n\nFo..."
url: "https://hashnode.com/posts/course-schedule-2/68a32b2ba10d174c156ad2e1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Course Schedule 2](https://chetan77.hashnode.dev/course-schedule-2?utm_source=hashnode&utm_medium=feed)

Problem There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites\[i\] = \[ai, bi\] indicates that you must take course bi first if you want to take course ai. Fo...

Aug 18, 2025 · 2 min read · chetan77.hashnode.dev  
Read the article

-   [#course-schedule-2](https://hashnode.com/tag/course-schedule-2)
-   [#graphs](https://hashnode.com/tag/graphs)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#topological-sort](https://hashnode.com/tag/topological-sort)

## Written by

[Chetan Datta](https://hashnode.com/@chetan77)

@chetan77 · Hyderabad, India

  
[View profile](https://hashnode.com/@chetan77)

Software Engineer

I share my learnings here. Thanks for reading.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
