You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The fast one goes forward two steps each time, while the slow one goes only step each time. They must meet the same item when slow==fast.
// In fact, they meet in a circle, the duplicate number must be the entry point of the circle when visiting the array from nums[0].
// Next we just need to find the entry point. We use a point(we can use the fast one before) to visit form begining with one step each time, do the same job to slow.
// When fast==slow, they meet at the entry point of the circle.