Problem 3070. Pattern Recognition 3 - Variable Unit and Array Length (including cell arrays)
Solution Stats
Problem Comments
-
3 Comments
Binbin Qi
on 8 Mar 2015
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?
Alfonso Nieto-Castanon
on 8 Mar 2015
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...
Binbin Qi
on 8 Mar 2015
thanks,I see
Problem Recent Solvers37
Suggested Problems
-
1588 Solvers
-
Numbers with prime factors 2, 3 and 5.
413 Solvers
-
214 Solvers
-
606 Solvers
-
Implement a bubble sort technique and output the number of swaps required
226 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!