in reply to Re^2: Special binary search
in thread Special binary search

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.