Cody

Solution 1152333

Submitted on 3 Apr 2017 by H M Dipu Kabir
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   Pass
n = 9; y_correct = 6; assert(isequal(odd_elimination(n),y_correct))

y = 6

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

y = 510

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

y = 56

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

y = 2014

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

y = 55286

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

y = 480

Suggested Problems

More from this Author12