Cody

Solution 2191959

Submitted on 4 Apr 2020 by Binbin Qi
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
x = 1000; y_correct = 4; assert(isequal(compute_number(x),y_correct))

2   Pass
x = 0; y_correct = 1; assert(isequal(compute_number(x),y_correct))

3   Pass
x = 7675483; y_correct = 7; assert(isequal(compute_number(x),y_correct))

4   Pass
x=-2 y_correct = 1; assert(isequal(compute_number(x),y_correct))

x = -2

5   Pass
x=8476352689256 y_correct = 13; assert(isequal(compute_number(x),y_correct))

x = 8.4764e+12