Graph
Nahida_nora
这个作者很懒,什么都没留下…
展开
-
Leetcode 708. Insert into a Sorted Circular Linked List
Leetcode 708. Insert into a Sorted Circular Linked List Approach 1: Two-Pointers Iteration Given a node from a Circular Linked List which is sorted in ascending order, write a function to insert a value insertVal into the list such that it remains a sorted原创 2020-06-22 01:02:39 · 218 阅读 · 0 评论 -
Leetcode 1257. Smallest Common Region
Leetcode 1257. Smallest Common Region Build family tree from offsprings to their parents; Use a HashSet to construct ancestry history of region1; Retrieve ancestry of region2 by family tree till find the first common ancestry in ancestry history of region1原创 2020-06-10 00:33:57 · 165 阅读 · 0 评论