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
It dseon't mettar waht oedrr the lrettes in a wrod are.
654 Solvers
190 Solvers
1883 Solvers
Numbers with prime factors 2, 3 and 5.
166 Solvers
Flip the vector from right to left
2677 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!