There was an error while loading. Please reload this page.
1 parent 2a1caa1 commit 64a003fCopy full SHA for 64a003f
src/main/java/g2001_2100/s2011_final_value_of_variable_after_performing_operations/readme.md
@@ -57,9 +57,11 @@ X++: X is incremented by 1, X = 0 + 1 = 1.
57
58
++X: X is incremented by 1, X = 1 + 1 = 2.
59
60
---X: X is decremented by 1, X = 2 - 1 = 1. X--: X is decremented by 1, X = 1 - 1 = 0.
+--X: X is decremented by 1, X = 2 - 1 = 1.
61
+
62
+X--: X is decremented by 1, X = 1 - 1 = 0.
63
64
**Constraints:**
65
66
* `1 <= operations.length <= 100`
-* `operations[i]` will be either `"++X"`, `"X++"`, `"--X"`, or `"X--"`.
67
+* `operations[i]` will be either `"++X"`, `"X++"`, `"--X"`, or `"X--"`.
0 commit comments