#287

Find the Duplicate Number

medium· Linked Listruns: 0

Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive, there is exactly one repeated number. Return the repeated number. The algorithm must use only constant extra space and may not modify the input array.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.