摘要: class Solution { public: TreeNode* dfs(TreeNode *&root,int target){ if(!root) return root; dfs(root->left,target); dfs(root->right,target); if(root->v 阅读全文
posted @ 2020-07-10 15:23 阿破 阅读(107) 评论(0) 推荐(0)
摘要: class Solution { public: bool canFinish(int numCourses, vector<vector<int>>& prerequisites) { int n=0; queue<int> s; vector<int> h[numCourses],indeg(n 阅读全文
posted @ 2020-07-10 13:27 阿破 阅读(103) 评论(0) 推荐(0)