Non-Leetcode Questions: Find Loops In Linkedlist
Find loops in LinkedListNaive Thinking:用一快一慢两个指针找出是否有loop。着相当于是找圈的起点的简化版。 加强版的见Intersection of Two Linked Lists
Read full article from Non-Leetcode Questions: Find Loops In Linkedlist
Non-Leetcode Questions: Find Loops In Linkedlist
Find loops in LinkedListRead full article from Non-Leetcode Questions: Find Loops In Linkedlist
No comments:
Post a Comment