|XP is just a number|
You can easily find the smallest index containing your target value
How about finding the smallest index that contains a value equal or greater than your target; or highest equal or less?
And how about you post a full sub save all of us trying to recreate your thought?
It doesn't increase the run time complexity
The proof is in the pudding!
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.