medium10 pts · first answer countsgraphstopological-sort
Fewest terms to finish all courses
Prerequisites are 1 → 2, 1 → 3, 2 → 4, 3 → 4 and 4 → 5. Any number of courses can be taken per term. What is the fewest number of terms?
Discussion 0
Join free to post in the discussion.
Related questions
- Edges in a tree with n nodesBackend Developer
- Most nodes in a binary tree of height 3Backend Developer
- What inorder traversal of a BST givesBackend Developer
- Preorder output of a small treeBackend Developer
- Traversal for freeing a whole treeBackend Developer
- Data structure for level-order traversalBackend Developer
- BST search time, typical and worstBackend Developer
- Leaves in a full binary treeBackend Developer