算法设计思路

递归的数据结构,可考虑采用递归算法。递归的数据结构有:数组、链表、树。

判断循环链表的 O(1) 思路,见 Leetcode 题解 - 141. Linked List Cycle