Find and replace a pattern in a row of zeroes and ones.
Example:
Input : [ 1 1 1 0 1 1 0 0 0 1 0 0 0 ] Output: [ 1 1 1 1 1 1 0 0 0 0 0 0 0 ]
Additional test cases have been added.
I don't like my best solution. Size of regexp should include its argument size. Otherwise all solutions can have size 10.
1939 Solvers
The Goldbach Conjecture, Part 2
964 Solvers
Duplicate each element of a vector.
455 Solvers
171 Solvers
724 Solvers