Anonymous user
Order by pair comparisons: Difference between revisions
m
→Ruby: Binary search insertion sort
Line 880:
print "(#{count}) Is #{item} < #{x}? "
gets.start_with?('y')
} || sortedItems.length # if
sortedItems.insert(spotToInsert, item)
}
|