DEV Community

Discussion on: Find the First Duplicate in a JavaScript Array

Collapse
 
djamaile profile image
Djamaile

You’re right, i misread the question. I recently had this question during my FAANG phone interview, i eventually ended up using binary search. Then he went on about turtle and hare, bla bla. Luckily he deemed it not really important to know, but a other interviewer might not be that nice.

This was the question btw: leetcode.com/problems/find-the-dup...