Merge pull request #60 from vzvu3k6k/fix-typo

chore: Fix typos (seprated -> separated)
This commit is contained in:
vzvu3k6k 2020-11-01 20:58:58 +09:00 committed by GitHub
commit 55f7f86c76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -13,6 +13,6 @@ class Array
end
end
puts "Enter a list of numbers seprated by space"
puts "Enter a list of numbers separated by space"
str = gets.chomp.split('')
puts str.bogosort.join('')

View file

@ -15,7 +15,7 @@ def bubble_sort(array)
array
end
puts "Enter a list of numbers seprated by space"
puts "Enter a list of numbers separated by space"
list = gets
bubble_sort(list)

View file

@ -24,7 +24,7 @@ def bucket_sort(input, bucket_size = DEFAULT_BUCKET_SIZE)
buckets.flatten.join(' ')
end
puts "Enter a list of numbers seprated by space"
puts "Enter a list of numbers separated by space"
list = gets
print bucket_sort(list)

View file

@ -10,7 +10,7 @@ def insertion_sort(array)
end
array
end
puts "Enter a list of numbers seprated by space"
puts "Enter a list of numbers separated by space"
list = gets
insertion_sort(list)

View file

@ -27,6 +27,6 @@ def merge_sort(array)
result
end
puts "Enter a list of numbers seprated by space"
puts "Enter a list of numbers separated by space"
list = gets
print merge_sort list.split(" ").map(&:to_i)