Posts by Igor • 41 points
1 post
-
4
votes4
answers412
viewsQ: How to check if a list contains 3 consecutive numbers
Insert a vector with 10 random integer values. Then check if there is a sequence of 3 consecutive numbers in the vector. Two values are consecutive if the difference is 1 unit example: A = [10, 5,…