Additional test cases have been added.
What about intersecting cases? like 1 0 1 0 or 0 1 0 1 ?
I don't like my best solution. Size of regexp should include its argument size. Otherwise all solutions can have size 10.
28034 Solvers
Which values occur exactly three times?
3818 Solvers
15304 Solvers
The Answer to Life, the Universe, and Everything
383 Solvers
1143 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!