Sequence in a List (Problem 6) - InfyTQ Solution in Python
Sequence in a List (Problem 6)
InfyTQ Solution in Python
PROBLEM STATEMENT
Write a python function which accepts a list of numbers and returns true, if 1, 2, 3 appears in sequence in the list.
Otherwise, it should return false.
Sample Input | Expected Output |
---|---|
[1, 1, 2, 3, 1] | True |
[1, 1, 2, 4, 3] | False |
SOLUTION
SHARE
If you find this useful, please share with your friends and Community.
CODE TOGETHER..GROW TOGETHER.
CODE TOGETHER..GROW TOGETHER.
Newer Posts
Newer Posts
Older Posts
Older Posts
Comments