Hacker News new | ask | show | jobs
by xigoi 530 days ago
If that happens, you’re going to get an out-of-bounds error no matter how you implement your binary search.
1 comments

In Java. In C you just access random memory values (or segfault).
Yes, which doesn’t contradict my point.