Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 377 Bytes

File metadata and controls

11 lines (8 loc) · 377 Bytes

Problem 20: Literal Operator Evaluation

Problem Statement

Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parentheses ), the plus + or minus - sign, non-negative integers, and empty spaces.

Input Format

  • A string s.

Example

Input: s = "(1+(4+5+2)-3)+(6+8)"
Output: 23