Re: binary search with reference to append

new topic     » goto parent     » topic index » view thread      » older message » newer message
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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu