โ† PayPal questions

Find missing and duplicate numbers in an array

Filed under PayPal

(AI-generated) Given an unsorted array of size N containing integers from 1 to N. One number is missing and one number occurs twice. Find both numbers in O(N) time and O(1) extra space.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related PayPal questions

Collected from public candidate posts and coding forums. Updated Nov 2026.