i ve seen a lot of other questions touch on the subject but nothing as on topic as to provide an answer for my particular problem. Is there a way to search an array and return values within a given range... for clarity I have one array = [0,5,12] I would like to compare array to another array (array2) using a range of numbers. Using array[0] as a starting point how would I return all values from array2 +/- 4 of array[0].
在这一特定情况下,从2阵列返回的人数将在4-4和4之间。
感谢Ninjas的帮助。