摘要:
拓扑排序 LCR 113. 课程表 II #include <iostream> #include <vector> #include <queue> using namespace std; class Solution { public: vector<int> findOrder(int nu 阅读全文
posted @ 2024-09-12 17:08
_Sylvan
阅读(86)
评论(0)
推荐(0)
摘要:
建图 邻接矩阵 #include <iostream> #include <vector> using namespace std; // 点的最大数量 int MAX_N = 11; // 邻接矩阵方式建图 vector<vector<int>> graph(MAX_N, vector<int>( 阅读全文
posted @ 2024-09-12 09:42
_Sylvan
阅读(44)
评论(0)
推荐(0)

浙公网安备 33010602011771号