← All problemsSign in

736. Parse Lisp Expression

LeetCodeHash TableStringStackRecursionOpen on judge ↗

You are given a string expression representing a Lisp-like expression to return the integer value of. The syntax for these expressions is given as follows. - An expression is either an integer, let expression, add expression, mult expression, or an assigned variable. Expressions always evaluate to a single integer. - (An integer could be positive or negative.) - A let expression takes the form

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start