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
29152 Solvers
Remove any row in which a NaN appears
6936 Solvers
All your base are belong to us
465 Solvers
255 Solvers
194 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!