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
28632 Solvers
136 Solvers
407 Solvers
165 Solvers
Remove element(s) from cell array
391 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!