Problem 2153. Replace pattern 0 1 0 and 1 0 1
Solution Stats
Problem Comments
-
2 Comments
goc3
on 15 Mar 2017
Additional test cases have been added.
Rafael S.T. Vieira
on 24 Jul 2020
What about intersecting cases? like 1 0 1 0 or 0 1 0 1 ?
Solution Comments
-
1 Comment
mmmriva
on 14 Feb 2014
I don't like my best solution. Size of regexp should include its argument size. Otherwise all solutions can have size 10.
Problem Recent Solvers114
Suggested Problems
-
5587 Solvers
-
1978 Solvers
-
Find the peak 3n+1 sequence value
1773 Solvers
-
Flag largest magnitude swings as they occur
649 Solvers
-
Who has power to do everything in this world?
403 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!