← Questions

Evaluate variable definitions with forward references and cycles

0
Applied IntuitionHarveyCodingLast asked Nov 2026

A coding interview question asked in Applied Intuition's AI-assisted build round and at Harvey, last asked Nov 2026. It tests graphs, topological sort and parsing.

A program is a list of assignments, one per line, like foo = bar + 5. Each right-hand side adds and subtracts integer literals and variable names, left to right, with no parentheses.

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

  • Applied Intuition · AI-assisted build · Last asked Nov 2026120 min · Build the designed system, or a small web app, in a prepared environment over two to three hours · Claude Code or a provided Claude model expected
  • Harvey · Coding · Last asked Sep 202660 min · Live practical coding · Candidates report freedom to use the tools and languages they know; confirm with your recruiter

What it tests

graphs · topological sort · parsing

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