Given an array of integers, return the first duplicate — i.e., the element that appears more than once and whose second appearance occurs before any other duplicate’s second appearance.
If no duplicates are found, return [].

Solution Stats

20 Solutions

13 Solvers

Last Solution submitted on Aug 17, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...