Untitled
unknown
plain_text
9 months ago
479 B
13
Indexable
/*
Let's say you are taking college courses
You have n courses
You have e list of dependencies (A, B)
A = course
B = course that A depends on, meaning B must finish first before A can be taken
there can be independent courses
there can also be multiple dependencies
design and write an implementation to determine if you can finish all courses?
run your code on test cases
A
/|\
B | C
\ /
D
E
/ \
F G
*/Editor is loading...
Leave a Comment