Cody

Problem 1190. Golomb's self-describing sequence (based on Euler 341)

Solution 3862838

Submitted on 26 Nov 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
assert(isequal(euler341(1),1))

Assertion failed.

2   Pass
assert(isequal(euler341(10),5))

3   Fail
assert(isequal(euler341(310),42))

Assertion failed.

4   Fail
assert(isequal(euler341(4242),210))

Assertion failed.

5   Fail
assert(isequal(euler341(328509),3084))

Assertion failed.

6   Fail
assert(isequal(euler341(551368),4247))

Assertion failed.

7   Fail
assert(isequal(euler341(614125),4540))

Assertion failed.

Suggested Problems

More from this Author80

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!