3 ms·
see "implementation issues" in the same article, with M = L + (R - L)/2
by froh 4y ago
see "implementation issues" in the same article, with
M = L + (R - L)/2
- david_allison 4y agoI'm aware (plus the fact that the algorithm is correct in Python). It's very unlikely that this is an argument I can win. I'm taking a pragmatic perspective: like it or not, people are going to skim the article and copy & paste the pseudocode. Given that the pseudocode is buggy in the vast majority of programming languages and the user isn't informed about this in the pseudocode, it's going to lead to unnecessary bugs.
- enriquto 4y ago> people are going to skim the article and copy & paste the pseudocode. Heh. But then again, these kind of people will create way worse problems than last-bit overflows.