Fix typos (seprated -> separated)

This commit is contained in:
vzvu3k6k 2020-11-01 20:58:09 +09:00
parent 4c2e1d9dea
commit 48fe20307d
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)