Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 2;
y_correct = 1;
assert(isequal(mytaxicab(x),y_correct))
|
2 | Fail |
x = 1729;
y_correct = 2;
assert(isequal(mytaxicab(x),y_correct))
|
3 | Pass |
x = 5251;
y_correct = 0;
assert(isequal(mytaxicab(x),y_correct))
|
4 | Pass |
x = 10000001;
y_correct = 0;
assert(isequal(mytaxicab(x),y_correct))
|
5 | Fail |
x = 87539319;
y_correct = 3;
assert(isequal(mytaxicab(x),y_correct))
|
Is my wife right? Now with even more wrong husband
1241 Solvers
Project Euler: Problem 7, Nth prime
521 Solvers
Set the array elements whose value is 13 to 0
936 Solvers
123 Solvers
Sum of odd numbers in a matrix
311 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!