← Questions

Expand placeholders from a variable store

0
GoogleCodingLast asked Nov 2026

A coding interview question asked in Google's first round (coding), last asked Nov 2026. It tests strings, recursion and parsing.

Implement a small store of variables with template substitution, as in a shell startup file where export NAME="Tom" defines a variable. Any string can refer to a variable as %NAME%, and parsing the string replaces each reference with its…

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

  • Google · First round: coding · Last asked Nov 202645 min · Coding in a Google Doc, no syntax highlighting or autocomplete · No AI

What it tests

strings · recursion · parsing

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