For a better experience on RandomWits, enable JavaScript in your browser.
RandomWits
life is too short for a diary
Tags
Books
Quotes
Travel
Resources
Tools
Contact
About
On This Page
Posts Tagged: bfs
Course Schedule Leetcode Solution
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] = [a
i
, b
i
] indicates that you must take course b
i
first if you want to take course a
i
...
Continue reading →
leetcode
graph
bfs
java
python