mirror of
https://github.com/devenperez/leetcode.git
synced 2026-06-13 23:07:08 +00:00
Time: 61 ms (55.03%), Space: 13.8 MB (52.98%) - LeetHub
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ class Solution:
|
|||||||
value = 0
|
value = 0
|
||||||
|
|
||||||
for op in operations:
|
for op in operations:
|
||||||
if "+" in [op[0], op[-1]]:
|
if op[1] == "+":
|
||||||
value += 1
|
value += 1
|
||||||
else:
|
else:
|
||||||
value -= 1
|
value -= 1
|
||||||
|
|||||||
Reference in New Issue
Block a user