Showing 3 of 5 questions
Implement a basic calculator to evaluate a simple expression string. The expression can contain parentheses, addition, and subtraction.
#1. Basic Calculator
Implement a basic calculator to evaluate a simple expression string. The expression can contain non-negative integers, '+', '-', '*', '/' operators, and spaces; integer division should truncate toward zero.
#2. Basic Calculator II
Determine if a given abbreviation is valid for a given word. An abbreviation can contain digits representing the number of skipped characters.
#3. Valid Word Abbreviation