MediumLinked ListNeetCode 150 · #42/150
Find the Duplicate Number
- 1Learn the pattern
Draw the pointers before coding. Dummy head + fast/slow pointers solve most list problems.
- 2Trace your version
Paste your solution into the workspace and watch every step execute.
Open workspace - 3