摘要:
https://leetcode-cn.com/problems/redundant-connection-ii/ 对于有向图的树,如果增加一条有向边,则会出现两种情况 第一种为形成一个点有两个father 1.有有向环,无环 第二种为有环 class Solution { private: sta 阅读全文
摘要:
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 阅读全文