← OYO questions

Find index triplets where val[c] = val[a] + val[b]

Filed under OYO

Given an array of integers, find all unique index triplets (a, b, c) such that the value at index c is the sum of values at indices a and b (i.e., nums[c] = nums[a] + nums[b]). Indices a, b, and c…

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.