Leetcode: N-Repeated Element in Size 2N Array || Java

Java

Video is ready, Click Here to View ×


In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times.

Return the element repeated N times.

Leave a Reply

Your email address will not be published. Required fields are marked *