Skip to content

Commit ee17453

Browse files
authored
Update decode-xored-array.py
1 parent 118c141 commit ee17453

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/decode-xored-array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ def decode(self, encoded, first):
1010
"""
1111
result = [first]
1212
for x in encoded:
13-
result.append(x^result[-1])
13+
result.append(result[-1]^x)
1414
return result

0 commit comments

Comments
 (0)