
题目收藏
文章平均质量分 84
HuangHongkai_
这个作者很懒,什么都没留下…
展开
-
LeetCode 685. Redundant Connection II (判断环,有向树,并查集)
In this problem, a rooted tree is a directed graph such that, there is exactly one node (the root) for which all other nodes are descendants of this node, plus every node has exactly one parent, excep...原创 2018-10-31 16:50:47 · 330 阅读 · 0 评论 -
LeetCode 715. Range Module / 57. Insert Interval(区间查询更新,离散化)
A Range Module is a module that tracks ranges of numbers. Your task is to design and implement the following interfaces in an efficient manner.addRange(int left, int right) Adds the half-open interva...原创 2018-11-03 23:31:05 · 445 阅读 · 0 评论