首页 > TAG信息列表 > vectorin

leetcode 剑指offerII 115 重建序列

思路: 拓扑排序。 实现: 1 class Solution { 2 public: 3 bool sequenceReconstruction(vector<int>& a, vector<vector<int>>& s) { 4 int n=a.size(),m=s.size(); 5 vector<int>in(n+1,0); 6 vector<vector&l