摘要: 【207】 Course Schedule 排课问题,n门课排课,有的课程必须在另外一些课程之前上,问能不能排出来顺序。 题解:裸的拓扑排序。参考代码见算法竞赛入门指南这本书。 1 class Solution { 2 public: 3 bool dfs(const vector<vector<i 阅读全文
posted @ 2018-09-16 09:28 zhangwanying 阅读(444) 评论(0) 推荐(0) 编辑