11 ms·
> Just look at the code. How could it be simpler? Cannot tell if this is a joke.
by gnuvince 2y ago
> Just look at the code. How could it be simpler?
Cannot tell if this is a joke.
- Aeolos 2y agoWhich part do you find complicated? The code itself looks very straightforward, two preconditions and a loop. I don't see any significant difference in terms of complexity compared to any other low-level systems programming language. It's obviously a bit more verbose than python or haskell, but those are not targeting the same audience.
- IshKebab 2y agoIt looks extremely simple to me. I definitely have never seen a simpler binary search implementation (though in fairness it punts the midpoint calculation). Why do you think it's a joke?
- johnisgood 2y agoYeah, Perl is simple, too, then.