摘要: https://leetcode-cn.com/problems/redundant-connection-ii/ 对于有向图的树,如果增加一条有向边,则会出现两种情况 第一种为形成一个点有两个father 1.有有向环,无环 第二种为有环 class Solution { private: sta 阅读全文
posted @ 2020-09-17 22:32 aaaaassss 阅读(97) 评论(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 阅读(83) 评论(0) 推荐(0) 编辑