Evaluate postfix expression

Java Hard 5 views
Back to Questions

Problem Description

Task: evaluate postfix expression given as int tokens and ops codes. Use stack.

Input Format

Java method

Output Format

Return value

Constraints

ops: -1 add, -2 sub, -3 mul, -4 div.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next