Jump to content

Order by pair comparisons: Difference between revisions

m
Line 880:
print "(#{count}) Is #{item} < #{x}? "
gets.start_with?('y')
} || sortedItems.length # if itempredicate is greaterfalse thanfor all elements, bsearch_index returns nil
sortedItems.insert(spotToInsert, item)
}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.