Community

Discussion Board

Anonymous interview experiences, offers and career talk from frontend engineers.

anon_406374

Coding question- leetcode stle

Implement a function findDuplicate(nums) that takes an array of integers nums containing n + 1 integers where each integer is between 1 and n (inclusive). There is only one duplicate number in the array, but it could appear multiple times.

Premium

Keep reading with Premium

You've read your 2 free interview experiences. Go premium to read this, plus every interview experience and premium question on FrontendLead.

  • All premium solutions
  • System design deep dives
  • Company-specific prep

4.9/5 from our users

Already premium? Log in