Skip to content

Commit 767fcc3

Browse files
authored
Merge branch 'master' into 868_Binary_Gap-update
2 parents 7507dbc + e409a0c commit 767fcc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/easy/832_flipping_an_image.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
def flip_and_invert_image(image)
77
c = image[0].length
88
image.each do |row|
9-
(0...(c + 1) / 2).step(1) do |i|
9+
(0...(c + 1) / 2).each do |i|
1010
temp = row[i] ^ 1
1111
index = c - i - 1
1212
row[i] = row[index] ^ 1

0 commit comments

Comments
 (0)