mirror of
https://github.com/TheAlgorithms/Ruby
synced 2025-01-29 20:34:27 +01:00
Fix typos (seprated -> separated)
This commit is contained in:
parent
4c2e1d9dea
commit
48fe20307d
5 changed files with 5 additions and 5 deletions
|
@ -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('')
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue