This problem needs more test cases with the three of a kind appearing before the pair, such as:
1 0 1 0 0 0 0 0 0 0 1 0 1
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 0 0 0 1 0 0
707 Solvers
337 Solvers
Test if a Number is a Palindrome without using any String Operations
181 Solvers
242 Solvers
Create a matrix X, where each column is a shifted copy of the vector v
142 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!