Simplify Expression by Removing Parentheses

Asked at Oracle · Coding Questions · Difficulty: Medium · Last asked Jun 10, 2025

Given an arithmetic expression containing variables, `+`, `-`, and parentheses, return an equivalent expression with all parentheses removed and signs propagated. Asked in the Oracle Labs AI/ML SDE3 onsite as one of two coding problems.

Loading the problem…