Problem Recent Solvers205
Suggested Problems
-
116926 Solvers
-
Select every other element of a vector
37166 Solvers
-
Sum all integers from 1 to 2^n
18054 Solvers
-
434 Solvers
-
Return the first and last characters of a character array
12415 Solvers
More from this Author44
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
It'd be good to indicate which kolakoski sequence you mean since I can find at least two different ones
1. wikipedia = http://oeis.org/A000002
2. wolfram mathworld = http://oeis.org/A006928
it is https://oeis.org/A000002
Test suite has been updated -
> str2num has been outlawed to prevent hard-coded and cheat/hack solutions.
> Test cases added, including a random number check.
> Solutions have been re-scored.