Implement a Calculator with Brackets
Asked at WeRide · Coding Questions · Difficulty: Hard
Implement a basic calculator that supports the four arithmetic operations (`+`, `-`, `*`, `/`) and brackets `(` `)`, respecting operator precedence and the distributive law.
Loading the problem…