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
934 Solvers
131 Solvers
222 Solvers
Determine the number of odd integers in a vector
447 Solvers
Who is the smartest MATLAB programmer?
565 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!