#210

Course Schedule II

medium· Graphsruns: 0

There are numCourses courses labeled 0 to numCourses - 1. You are given an array prerequisites where prerequisites[i] = [a, b] indicates that you must take course b before course a. Return the order of courses you should take to finish all of them. If there are multiple valid answers, return any. If it is impossible to finish all courses, return an empty array.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.