Nov-24-2019, 01:17 PM
What have you tried? We're not big on writing code for people here, but we would be happy to help you fix your code when you run into problems. When you do run into problems, please post your code in Python tags, and clearly explain the problem you are having, including the full text of any errors.
Note that this is what is technically called a graph, with the courses as nodes and the prerequisite relationships as edges. This can be represented in a dictionary, with the course IDs as keys and a list of course they link to (or courses that link to them) as the values. And of course, a big part of the question is how are you given the data on the course prerequisites?
Note that this is what is technically called a graph, with the courses as nodes and the prerequisite relationships as edges. This can be represented in a dictionary, with the course IDs as keys and a list of course they link to (or courses that link to them) as the values. And of course, a big part of the question is how are you given the data on the course prerequisites?
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures