会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
zhangwanying
博客园
首页
新随笔
联系
订阅
管理
2018年9月16日
【LeetCode】拓扑排序
摘要: 【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)
编辑
公告