Test  Status  Code Input and Output 

1  Pass 
a = [257.68];
b = [2 1 0 0 1 1 0 1 0 1 1 3];
out = makingChange(a);
assert(isequal(out(:), b(:)))
count_units =
2
a =
57.6801
b =
2
count_units =
1
a =
7.6802
b =
2 1
count_units =
0
a =
7.6803
b =
2 1 0
count_units =
0
a =
7.6804
b =
2 1 0 0
count_units =
1
a =
2.6805
b =
2 1 0 0 1
count_units =
1
a =
0.6806
b =
2 1 0 0 1 1
count_units =
0
a =
0.6807
b =
2 1 0 0 1 1 0
count_units =
1
a =
0.1808
b =
2 1 0 0 1 1 0 1
count_units =
0
a =
0.1809
b =
2 1 0 0 1 1 0 1 0
count_units =
1
a =
0.0810
b =
2 1 0 0 1 1 0 1 0 1
count_units =
1
a =
0.0311
b =
2 1 0 0 1 1 0 1 0 1 1
count_units =
3
a =
0.0012
b =
2 1 0 0 1 1 0 1 0 1 1 3

2  Pass 
a = [135.01];
b = [1 0 1 1 1 0 0 0 0 0 0 1];
out = makingChange(a);
assert(isequal(out(:), b(:)))
count_units =
1
a =
35.0101
b =
1
count_units =
0
a =
35.0102
b =
1 0
count_units =
1
a =
15.0103
b =
1 0 1
count_units =
1
a =
5.0104
b =
1 0 1 1
count_units =
1
a =
0.0105
b =
1 0 1 1 1
count_units =
0
a =
0.0106
b =
1 0 1 1 1 0
count_units =
0
a =
0.0107
b =
1 0 1 1 1 0 0
count_units =
0
a =
0.0108
b =
1 0 1 1 1 0 0 0
count_units =
0
a =
0.0109
b =
1 0 1 1 1 0 0 0 0
count_units =
0
a =
0.0110
b =
1 0 1 1 1 0 0 0 0 0
count_units =
0
a =
0.0111
b =
1 0 1 1 1 0 0 0 0 0 0
count_units =
1
a =
0.0012
b =
1 0 1 1 1 0 0 0 0 0 0 1

3  Pass 
a = [10035.99];
b = [100 0 1 1 1 0 0 1 1 2 0 4];
out = makingChange(a);
assert(isequal(out(:), b(:)))
count_units =
100
a =
35.9901
b =
100
count_units =
0
a =
35.9902
b =
100 0
count_units =
1
a =
15.9903
b =
100 0 1
count_units =
1
a =
5.9904
b =
100 0 1 1
count_units =
1
a =
0.9905
b =
100 0 1 1 1
count_units =
0
a =
0.9906
b =
100 0 1 1 1 0
count_units =
0
a =
0.9907
b =
100 0 1 1 1 0 0
count_units =
1
a =
0.4908
b =
100 0 1 1 1 0 0 1
count_units =
1
a =
0.2409
b =
100 0 1 1 1 0 0 1 1
count_units =
2
a =
0.0410
b =
100 0 1 1 1 0 0 1 1 2
count_units =
0
a =
0.0411
b =
100 0 1 1 1 0 0 1 1 2 0
count_units =
4
a =
0.0012
b =
100 0 1 1 1 0 0 1 1 2 0 4

Project Euler: Problem 2, Sum of even Fibonacci
752 Solvers
Who knows the last digit of pi?
540 Solvers
Calculate the area of a triangle between three points
459 Solvers
Generate a string like abbcccddddeeeee
273 Solvers
435 Solvers