Caitlin Wilson

15%
Flag icon
If you’re still strategizing about that bookshelf, the Mergesort solution would be to order a pizza and invite over a few friends. Divide the books evenly, and have each person sort their own stack. Then pair people up and have them merge their stacks. Repeat this process until there are just two stacks left, and merge them one last time onto the shelf.
Algorithms to Live By: The Computer Science of Human Decisions
Rate this book
Clear rating
Open Preview