Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
assert(isequal(symmetry(27),3))
|
2 | Pass |
assert(isequal(symmetry(801),0))
|
3 | Pass |
assert(isequal(symmetry(900),100))
|
4 | Pass |
assert(isequal(symmetry(88887),1))
|
5 | Pass |
assert(isequal(symmetry(1234567),65433))
|
6 | Pass |
assert(isequal(symmetry(34567890),3432110))
|
7 | Pass |
format long g
x=ceil(1e9*rand);
j=389e9+x
assert(isequal(8e11-symmetry(j),j))
j =
389887013731
|
8 | Pass |
format long g
x=ceil(1e10*rand);
j=889e10+x
v=symmetry(j);
assert(isequal(1e13-v,j))
j =
8899855464839
|
9 | Pass |
x=2^40-1;
assert(isequal(symmetry(symmetry(symmetry(symmetry(x)))),7775))
|
Maximum running product for a string of numbers
1112 Solvers
1763 Solvers
Project Euler: Problem 2, Sum of even Fibonacci
835 Solvers
Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed
141 Solvers
2100 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!