Cody

# Problem 89. Counting in Finnish

Solution 1879056

Submitted on 19 Jul 2019 by Paul Smits
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));

anom = 10×2 table <strong>Var1</strong> <strong>Var2</strong> <strong>____</strong> <strong>_____</strong> 8 'kah' 2 'kak' 3 'kol' 6 'kuu' 4 'nel' 0 'nol' 7 'sei' 5 'vii' 9 'yhd' 1 'ysk'

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));

anom = 13×2 table <strong>Var1</strong> <strong>Var2</strong> <strong>____</strong> <strong>_____</strong> 8 'kah' 2 'kak' 2 'kak' 3 'kol' 4 'nel' 0 'nol' 7 'sei' 5 'vii' 9 'yhd' 9 'yhd' 1 'ysk' 1 'ysk' 1 'ysk'

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));

anom = 11×2 table <strong>Var1</strong> <strong>Var2</strong> <strong>____</strong> <strong>_____</strong> 2 'kak' 3 'kol' 4 'nel' 0 'nol' 0 'nol' 0 'nol' 7 'sei' 5 'vii' 5 'vii' 9 'yhd' 1 'ysk'