- call DFS(G) to compute finishing times v.f for each vertex v
- as each vertex is finished, insert in onto the front of a linked list
- return the linked list of vertices
Problem:
- 269. Alien Dictionary: https://leetcode.com/problems/alien-dictionary/description/
沒有留言:
張貼留言