Skip to content

Commit c6a1b4c

Browse files
authored
Update Evaluate Reverse Polish Notation (RPN) - Leetcode 150.py
1 parent e3ce9e6 commit c6a1b4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Evaluate Reverse Polish Notation (RPN) - Leetcode 150.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,8 @@ def evalRPN(self, tokens: List[str]) -> int:
2020
stk.append(floor(division))
2121
else:
2222
stk.append(int(t))
23+
2324
return stk[0]
25+
26+
# Time Complexity: O(n)
27+
# Space Complexity: O(n)

0 commit comments

Comments
 (0)