The Jane Street SWE Intern second-round interview focused on evaluating recursively structured arithmetic expressions. The main complication was that every intermediate result had to remain a positive integer; if any subexpression produced a negative value or non-integer division result, the entire expression immediately became invalid.
Interview Details
Coding — Evaluate Arithmetic Expression with Intermediate Validation
Given an arithmetic expression represented as a string, evaluate and return its result. The expression could contain:
+
-
*
/
parentheses
positive integers
+
-
*
/
parentheses
positive integers
However, every intermediate computation also had to produce a valid positive integer. If any intermediate operation resulted in a negative value or a non-integer value, the function should
Unlock Full Details
Create a free account to unlock this interview experience report.