We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3e2172 commit 21c5537Copy full SHA for 21c5537
leetcode-ruby.gemspec
@@ -5,7 +5,7 @@ require 'English'
5
::Gem::Specification.new do |s|
6
s.required_ruby_version = '>= 3.0'
7
s.name = 'leetcode-ruby'
8
- s.version = '2.5.0'
+ s.version = '2.5.1'
9
s.license = 'MIT'
10
s.files = ::Dir['lib/**/*.rb'] + %w[bin/leetcode-ruby README.md LICENSE]
11
s.executable = 'leetcode-ruby'
lib/easy/832_flipping_an_image.rb
@@ -6,7 +6,7 @@
def flip_and_invert_image(image)
c = image[0].length
image.each do |row|
- (0...(c + 1) / 2).step(1) do |i|
+ (0...(c + 1) / 2).each do |i|
temp = row[i] ^ 1
index = c - i - 1
12
row[i] = row[index] ^ 1
0 commit comments