Problem 287 · Medium

Find the Duplicate Number

Floyd's cycle detection on the implicit linked list where index i points to nums[i].

Open the interactive visualisation