Available question text
Simulate the operations using a stack: push integer scores, '+' pushes the sum of the last two scores, 'D' pushes double the last score, and 'C' removes the last score, then return the sum of the stack. The operations are processed sequentially and guaranteed valid.
Related questions
Continue with questions that share topics or the same question type.
- 2048 Game Backend
Coding
- 24 Game
Coding
- Alice and Bob Playing Flower Game
Coding
- Binary Tree Coloring Game
Coding · Binary Tree · Depth-First Search · Tree
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 682. Baseball Game
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source