← Questions

Three sum: unique value triples

0
GoogleMicrosoftMeta+1CodingLast asked Sep 2026

A coding interview question asked in Microsoft's technical phone screen and at Meta, Google and 1 more company, last asked Sep 2026. It tests two pointers and sorting.

Given an integer array and a target, return every distinct value triple [a, b, c] with a <= b <= c and a + b + c == target that can be formed from three different positions of the array. Triples are identified by their values, so each one…

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Microsoft · Technical phone screen · Last asked Sep 202660 min · One technical round
  • Meta · Technical phone screen · Last asked Apr 202645 min · Two coding problems in CoderPad, about 20 minutes each · Usually no AI; some newer screens are AI-assisted
  • Google · Onsite coding · Last asked Dec 202545 min · Usually two rounds, mostly in person: whiteboard plus a Chromebook with Google Docs · No AI (a pilot code-comprehension round lets candidates use Gemini)
  • Nvidia · Coding · Last asked Oct 2025Live coding, often C++-leaning; each round usually opens with 10 to 15 minutes on your past work · Assume no AI unless the interviewer offers it

What it tests

two pointers · sorting

Your code and the AI tutor open when you unlock this question.