常规的拓扑排序。在BFS的过程中,将层级遍历的“层数”记录下来,就是答案。
GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — LeetCode/BFS/1136.Parallel-Courses at master · wisdompeak/LeetCode Expand file tree/ Copy path1136.Parallel-Courses/Directory actionsMore optionsMore optionsDirectory actionsMore optionsMore options/ Copy path1136.Parallel-Courses/Folders and files
| |||||||||||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | |||||||||||||||||||||