09 2020 档案

摘要:https://leetcode-cn.com/problems/interval-list-intersections/ class Solution { public: vector<vector<int>> intervalIntersection(vector<vector<int>>& A 阅读全文
posted @ 2020-09-30 21:24 aaaaassss 阅读(92) 评论(0) 推荐(0)
摘要:https://leetcode-cn.com/problems/find-mode-in-binary-search-tree/ class Solution { public: int count = 0, max_count = 0; TreeNode* pre = NULL; vector< 阅读全文
posted @ 2020-09-24 17:09 aaaaassss 阅读(88) 评论(0) 推荐(0)
摘要:https://leetcode-cn.com/problems/gas-station/ 如果有解则sum[n-1]>=0 转载自https://leetcode-cn.com/problems/gas-station/solution/guan-fang-ti-jie-kan-qi-lai-ha 阅读全文
posted @ 2020-09-18 21:13 aaaaassss 阅读(79) 评论(0) 推荐(0)
摘要:https://leetcode-cn.com/problems/redundant-connection-ii/ 对于有向图的树,如果增加一条有向边,则会出现两种情况 第一种为形成一个点有两个father 1.有有向环,无环 第二种为有环 class Solution { private: sta 阅读全文
posted @ 2020-09-17 22:32 aaaaassss 阅读(103) 评论(0) 推荐(0)
摘要:https://leetcode-cn.com/problems/number-of-longest-increasing-subsequence/solution/c-dong-tai-gui-hua-by-da-li-wang-18/ class Solution { public: int f 阅读全文
posted @ 2020-09-17 21:10 aaaaassss 阅读(88) 评论(0) 推荐(0)