← Questions

Parse and evaluate a Lisp-like expression with error handling

0
UberChalkCodingLast asked Aug 2025

A coding interview question asked in Uber's online assessment and at Chalk, last asked Aug 2025. It tests parsing, recursion and stacks.

Evaluate a Lisp-like expression and return its integer value. The input may also be invalid, and then you must report an error instead of crashing or returning a wrong number.

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

  • Uber · Online assessment · Last asked Aug 202590 min · Two problems on a HackerRank-based platform, camera and screen share on · No AI
  • Chalk · Technical phone screen · Last asked Jul 2024

What it tests

parsing · recursion · stacks

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