Problems / Linked List / Find the Duplicate Number
#42 Medium Time O(n) Space O(1) Animated

Find the Duplicate Number

Find a duplicate number in an array of n+1 integers.

LeetCode ↗
Approach: Floyd's Algorithm
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps