Skip to content

Commit 9da5503

Browse files
refactor 150
1 parent 7c70688 commit 9da5503

File tree

1 file changed

+0
-5
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-5
lines changed

src/main/java/com/fishercoder/solutions/_150.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,23 @@
88
* 150. Evaluate Reverse Polish Notation
99
*
1010
* Evaluate the value of an arithmetic expression in Reverse Polish Notation.
11-
*
1211
* Valid operators are +, -, *, /. Each operand may be an integer or another expression.
1312
*
1413
* Note:
15-
*
1614
* Division between two integers should truncate toward zero.
1715
* The given RPN expression is always valid. That means the expression would always evaluate to a result and there won't be any divide by zero operation.
1816
*
1917
* Example 1:
20-
*
2118
* Input: ["2", "1", "+", "3", "*"]
2219
* Output: 9
2320
* Explanation: ((2 + 1) * 3) = 9
2421
*
2522
* Example 2:
26-
*
2723
* Input: ["4", "13", "5", "/", "+"]
2824
* Output: 6
2925
* Explanation: (4 + (13 / 5)) = 6
3026
*
3127
* Example 3:
32-
*
3328
* Input: ["10", "6", "9", "3", "+", "-11", "*", "/", "*", "17", "+", "5", "+"]
3429
* Output: 22
3530
* Explanation:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy