Posts by Caroline Marques • 3 points
1 post
-
0
votes2
answers47
viewsQ: Find sequence in integer value
I came to the following algorithm to return true if there is an incremental numeric sequence pattern +1 function sequenceSearch(vector) { let pos = 0; let found = 0; for (pos = 0; pos <=…