Search
⌘K

Leetcode 3289. The Two Sneaky Numbers of Digitville

Given an array of length n+2 containing integers 0..n-1 where every number should appear exactly once but exactly two values appear twice, identify and return those two duplicate numbers (in any order).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.