Seems simple, but god, I've either got a mental block, or I'm just getting thick in my old age (Probably the latter), but how the hell do you check whether the integer data in an array increments by one e.g.
anArray = {4,3,7,3,4,5,6,2,7,9,10}
Though, in the example, there are two sections that increment by one, the one I need is the longest which is in bold!
I've been on ages trying to figure this out, but somethings not clicking, any ideas?
Thanks in advance
Dabz
anArray = {4,3,7,3,4,5,6,2,7,9,10}
Though, in the example, there are two sections that increment by one, the one I need is the longest which is in bold!
I've been on ages trying to figure this out, but somethings not clicking, any ideas?
Thanks in advance
Dabz