Showing 3 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
Simulate the Game of Life, updating the state of a board based on the rules of cell survival and death in each generation. Modify the board in place to represent the next generation.
#3. Game of Life