โ† Oracle questions
CodingReported in a candidate post, Jul 2025

Find duplicates in an array in O(n) time with a read-only array

Filed under Oracle

An array of n+1 integers contains values from 1 to n, so at least one value repeats. Find a duplicate in O(n) time without modifying the array (it is read-only) and using 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 Oracle questions

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