← Questions

Insert plus, times and parentheses to reach a target

0
GoogleAmazonWaymoCodingLast asked Sep 2026

A coding interview question asked in Waymo's coding round and at Google and Amazon, last asked Sep 2026. It tests dynamic programming, recursion and expressions.

You are given an equation whose left side is a sequence of non-negative integers with no operators between them, and whose right side is a target. For example: 2 3 4 = 20.

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

  • Waymo · Coding · Last asked Sep 202645 min · Usually two rounds; some give you the interviewer's buggy code to find and fix, some are read aloud with no skeleton
  • Google · Onsite coding · Last asked Aug 202645 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)
  • Amazon

What it tests

dynamic programming · recursion · expressions

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