← Goldman Sachs questions
CodingReported in a candidate post, Oct 2025

Build a calculator that evaluates an expression with brackets

Filed under Goldman Sachs

Given a string containing non-negative integers, the operators +, -, *, / and parentheses, evaluate it and return the integer result. Respect precedence (* and / before + and -) and bracket grouping…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Goldman Sachs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.