Let say I have an array with the following numbers:
1,4,12,22,53,51,49,55,2,5,50,51,100
I'm trying to develop an algorithm that finds the max number of consecutive number in the array that is between 40 and 60.
For the example above, the algorithm should return 53,51,49 and 55. 50,51 are not returned because that is only 2 consecutive number that are between 40 and 60.
Bookmarks