Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Special binary searchby sn1987a (Deacon) |
on Jun 22, 2021 at 18:17 UTC ( [id://11134182]=note: print w/replies, xml ) | Need Help?? |
Since you want all of the values within the window, there is no need to do two searches. Once you find one value in the window you can get sequential values, both higher and lower, until get the ends of the window.
In Section
Seekers of Perl Wisdom
|
|