January 2024
Intermediate to advanced
480 pages
12h 36m
English

Think back to when we learned about binary search in Chapter 7. Rather than answering the question, “What is the optimal solution?” we instead asked, “Is this specific value the optimal solution?” While we were solving the Feeding Ants problem, you may have thought that my picking values out of thin air was outlandish, wondering how that was going to work at all. But it works great, as we now know.
You want something that’s even more outlandish than binary search? How about just straight-up guessing a completely random solution. How could that possibly work? What is it about specific problems that makes this random guessing a viable ...
Read now
Unlock full access