Test Cases & Chat
Part 1
current
Test 1
input:numCourses = 2, prerequisites = [[1,0]]
expect:[0,1]
Test 2
input:numCourses = 4, prerequisites = [[1,0],[2,0],[3,1],[3,2]]
expect:[0,1,2,3] or [0,2,1,3]
Test 3
input:numCourses = 1, prerequisites = []
expect:[0]
Choose your coach
Pick a style and how you want to communicate
then
Loading...
OUTPUT
Run code to see output...
Part 1
current
Test 1
input:numCourses = 2, prerequisites = [[1,0]]
expect:[0,1]
Test 2
input:numCourses = 4, prerequisites = [[1,0],[2,0],[3,1],[3,2]]
expect:[0,1,2,3] or [0,2,1,3]
Test 3
input:numCourses = 1, prerequisites = []
expect:[0]
Choose your coach
Pick a style and how you want to communicate
then