Problem 3070. Pattern Recognition 3 - Variable Unit and Array Length (including cell arrays)
Solution Stats
Problem Comments
-
3 Comments
array = [1 10 100 1 10 1 10 100 1 10 100 1];
in test 18, this is false, I think it should true,and you?
The way I interpret it, the last (partial) segment in the sequence <1 10 100 1 10> <1 10 100 1 10> <100 1 ... does not match the expected pattern. The other alternative, sequence <1 10 100 1 10 1 10 100> <1 10 100 1...> has a correct partial match but it does not include a pattern that is repeated at least once...
thanks,I see
Problem Recent Solvers37
Suggested Problems
-
Given two arrays, find the maximum overlap
1032 Solvers
-
1092 Solvers
-
Sum of first n terms of a harmonic progression
357 Solvers
-
Find the maximum two numbers of every column of a matrix
176 Solvers
-
Convert to Binary Coded Decimal
110 Solvers
More from this Author139
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!