Why did Sun screw around this way? Why didn’t they just return the insertion point directly? The problem is, what if the insertion point were 0? You could not tell that apart from a match found in slot 0. The way it works, an insert at 0 is coded as -1.
|
|
available on the web at: |
http://mindprod.com/jgloss/binarysearch.html |
optional Replicator mirror
|
J:\mindprod\jgloss\binarysearch.html | |
![]() |
Please email your
feedback for publication,
letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear
wording, broken/redirected link reports, suggestions to improve this page or comments to
Roedy Green :
| |
| Blog | Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[54.242.233.11] |
|
| Feedback | You are visitor number 46,968. | |