Leetcode 961. N-Repeated Element in Size 2N Array
Given an array of length 2n containing n+1 distinct values where exactly one value appears n times, return the value that is repeated n times. The core challenge is to identify the element with frequency n (detectable in linear time using frequency tracking or a set thanks to the guaranteed repetition).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.