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
Find the two most distant points
1672 Solvers
316 Solvers
Program an exclusive OR operation with logical operators
644 Solvers
148 Solvers
2349 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!