solulubeta
Sign in
NeetCode 150 / Linked List
06.08 · Problem

Find the Duplicate Number

Medium Floyd's cycle detection on indices 1 video LC 287 Pro

This problem is part of solulu Pro

nums has n + 1 integers, each in the range [1, n]. Exactly one value is repeated (possibly several times). Return it without modifying the array and using only O(1) extra space.

Lifetime ₹1,999 ₹999 · Launch offer
Mark this problem as solved when you are finished.

Item 42 of 150 · updated 2026-10-12