Add binary_insertion_sort.rb

This commit is contained in:
ryanneilparker 2022-10-06 10:22:24 +00:00
parent 6007e52b99
commit c32ffeccb0

View file

@ -1,9 +1,4 @@
# Ruby implementation
# of binary insertion sort algorithm
require 'pry'
# Ruby implementation of binary insertion sort algorithm
def binary_search(arr, val, start, stop)
while start <= stop