Cody

Solution 1989708

Submitted on 24 Oct 2019
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
n = 9; y_correct = 6; assert(isequal(odd_elimination(n),y_correct))

y = 4 8

Assertion failed.

2   Fail
n = 1000; y_correct = 510; assert(isequal(odd_elimination(n),y_correct))

y = 512

Assertion failed.

3   Fail
n = 99; y_correct = 56; assert(isequal(odd_elimination(n),y_correct))

y = 64

Assertion failed.

4   Fail
n = 5000; y_correct = 2014; assert(isequal(odd_elimination(n),y_correct))

y = 2048 4096

Assertion failed.

5   Fail
n = 100000; y_correct = 55286; assert(isequal(odd_elimination(n),y_correct))

y = 65536

Assertion failed.

6   Fail
n = 666; y_correct = 480; assert(isequal(odd_elimination(n),y_correct))

y = 256 512

Assertion failed.

Suggested Problems

More from this Author12