4/9
Binary Search
Binary search, my love!
Oh, how wondrous and above
other forms of search you are.
Fast and efficient; you set the bar.
So clever it is to halve
the search area each pass.
So delightful it is to quickly find
the value that you have in mind!
But I have to admit
--oh how it pains me to do it!--
that it is quite inconvenient
when you return -1 in the end.
Value not found!
Oh, the horror abounds!
But even this flaw can be fixed
with a bit of code and a twist.
So, binary search, my love.
You will always be enough.
<3
Gender:
Points: 22463
Reviews: 246