RubyGems
npm
Organizations
Log in
Sign up
RubyGems
SnowArraySort
Versions diffs
1.0.18 → 1.0.19
SnowArraySort 1.0.18 → 1.0.19
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (3)
hide
show
data/lib/SnowArraySort/merge_array_sort_snow.rb
+1
-1
data/lib/SnowArraySort/version.rb
+1
-1
metadata
+1
-1
data/lib/SnowArraySort/merge_array_sort_snow.rb
CHANGED
Viewed
@@ -3,7 +3,7 @@ module SnowArraySort
3
3
include SnowArraySort
4
4
5
5
def self.merge_sort(lists)
6
-
return lists if lists.count
==
1
6
+
return lists if lists.count
<=
1
7
7
8
8
middle = lists[0..(lists.count / 2) - 1 ]
9
9
left = lists[0..middle.count - 1]
data/lib/SnowArraySort/version.rb
CHANGED
Viewed
@@ -1,4 +1,4 @@
1
1
module SnowArraySort
2
-
VERSION = "1.0.
18
"
2
+
VERSION = "1.0.
19
"
3
3
end
4
4
metadata
CHANGED
Viewed
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: SnowArraySort
3
3
version: !ruby/object:Gem::Version
4
-
version: 1.0.
18
4
+
version: 1.0.
19
5
5
prerelease:
6
6
platform: ruby
7
7
authors: