← OYO questions

Find indices in sorted arrays

Filed under OYO

Given two 0-indexed sorted integer arrays A and B of length N, and a target index I, find two indices x and y in array A such that A[x] + A[y] + A[I] = B[I]. Return [x, y] as a pair of indices. If no…

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 OYO questions

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