Cody

# Problem 89. Counting in Finnish

Solution 1899446

Submitted on 13 Aug 2019 by Todd Snow
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
a = [1 2 3 4 5 6 7 8 9 0]; b = [8 2 3 6 4 0 7 5 9 1]; out = finnishOrdering(a); assert(isequal(out, b));

c = 9 c = 9 1 c = 9 1 2 c = 9 1 2 4 c = 9 1 2 4 7 c = 9 1 2 4 7 3 c = 9 1 2 4 7 3 6 c = 9 1 2 4 7 3 6 0 c = 9 1 2 4 7 3 6 0 8 c = 9 1 2 4 7 3 6 0 8 5 c = 0 1 2 3 4 5 6 7 8 9 b = 8 b = 8 2 b = 8 2 3 b = 8 2 3 6 b = 8 2 3 6 4 b = 8 2 3 6 4 0 b = 8 2 3 6 4 0 7 b = 8 2 3 6 4 0 7 5 b = 8 2 3 6 4 0 7 5 9 b = 8 2 3 6 4 0 7 5 9 1

2   Pass
a = [1 1 1 2 0 4 5 3 7 2 9 8 9]; b = [8 2 2 3 4 0 7 5 9 9 1 1 1]; out = finnishOrdering(a); assert(isequal(out, b));

c = 9 c = 9 9 c = 9 9 9 c = 9 9 9 1 c = 9 9 9 1 5 c = 9 9 9 1 5 4 c = 9 9 9 1 5 4 7 c = 9 9 9 1 5 4 7 2 c = 9 9 9 1 5 4 7 2 6 c = 9 9 9 1 5 4 7 2 6 1 c = 9 9 9 1 5 4 7 2 6 1 8 c = 9 9 9 1 5 4 7 2 6 1 8 0 c = 9 9 9 1 5 4 7 2 6 1 8 0 8 c = 0 1 1 2 4 5 6 7 8 8 9 9 9 b = 8 b = 8 2 b = 8 2 2 b = 8 2 2 3 b = 8 2 2 3 4 b = 8 2 2 3 4 0 b = 8 2 2 3 4 0 7 b = 8 2 2 3 4 0 7 5 b = 8 2 2 3 4 0 7 5 9 b = 8 2 2 3 4 0 7 5 9 9 b = 8 2 2 3 4 0 7 5 9 9 1 b = 8 2 2 3 4 0 7 5 9 9 1 1 b = 8 2 2 3 4 0 7 5 9 9 1 1 1

3   Pass
a = [0 0 0 1 5 4 3 2 7 5 9]; b = [2 3 4 0 0 0 7 5 5 9 1]; out = finnishOrdering(a); assert(isequal(out, b));

c = 5 c = 5 5 c = 5 5 5 c = 5 5 5 9 c = 5 5 5 9 7 c = 5 5 5 9 7 4 c = 5 5 5 9 7 4 2 c = 5 5 5 9 7 4 2 1 c = 5 5 5 9 7 4 2 1 6 c = 5 5 5 9 7 4 2 1 6 7 c = 5 5 5 9 7 4 2 1 6 7 8 c = 1 2 4 5 5 5 6 7 7 8 9 b = 2 b = 2 3 b = 2 3 4 b = 2 3 4 0 b = 2 3 4 0 0 b = 2 3 4 0 0 0 b = 2 3 4 0 0 0 7 b = 2 3 4 0 0 0 7 5 b = 2 3 4 0 0 0 7 5 5 b = 2 3 4 0 0 0 7 5 5 9 b = 2 3 4 0 0 0 7 5 5 9 1