Re: binary search with reference to append
- Posted by jimcbrown (admin) Jun 15, 2014
- 1732 views
DerekParnell said...
I have no idea what the comment "ep=3 => length?? " is meant to be saying to me.
Could it be a typo for "ep=0 => length?? " ?
In that case, I'd read the meaning as "why the heck do you treat ep=0 to be the same as the length of the haystack, and why the heck do you treat ep=-3 to be the same as the length of the haystack minus 3 elements, or 3 elements up from the end of the haystack?" or something.
But of course, the reason we do that is straightforward and obvious.