Hi Monks, I'm trying to code for the following scenario. Say I'm given: $target=4,@test = ( '0','1','5','7','10','11'), and $size=2. I want to be able to find $size elements that $target falls between. In this example the result should be '0','1','5','7'. Any suggestions on the best approach to this? The @test could have hundreds of elements and the program will have to perform this exercise multiple times.
Thanks in advance!