Skip to content

Commit 64a003f

Browse files
authored
Update readme.md
1 parent 2a1caa1 commit 64a003f

File tree

1 file changed

+4
-2
lines changed
  • src/main/java/g2001_2100/s2011_final_value_of_variable_after_performing_operations

1 file changed

+4
-2
lines changed

src/main/java/g2001_2100/s2011_final_value_of_variable_after_performing_operations/readme.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ X++: X is incremented by 1, X = 0 + 1 = 1.
5757

5858
++X: X is incremented by 1, X = 1 + 1 = 2.
5959

60-
--X: X is decremented by 1, X = 2 - 1 = 1. X--: X is decremented by 1, X = 1 - 1 = 0.
60+
--X: X is decremented by 1, X = 2 - 1 = 1.
61+
62+
X--: X is decremented by 1, X = 1 - 1 = 0.
6163

6264
**Constraints:**
6365

6466
* `1 <= operations.length <= 100`
65-
* `operations[i]` will be either `"++X"`, `"X++"`, `"--X"`, or `"X--"`.
67+
* `operations[i]` will be either `"++X"`, `"X++"`, `"--X"`, or `"X--"`.

0 commit comments

Comments
 (0)