Cody

Problem 44712. Sort Reversal

Solution 1623932

Submitted on 7 Sep 2018 by goc3
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
assert(isequal(SortReversal(1),0))

ans = 0

2   Pass
assert(isequal(SortReversal(3),1))

ans = 1

3   Pass
assert(isequal(SortReversal(71),1225))

ans = 1225

4   Pass
assert(isequal(SortReversal(113),3136))

ans = 3136

5   Pass
assert(isequal(SortReversal(123),3721))

ans = 3721

6   Pass
assert(isequal(SortReversal(199),9801))

ans = 9801

7   Pass
assert(isequal(SortReversal(257),16384))

ans = 16384

8   Pass
assert(isequal(SortReversal(321),25600))

ans = 25600

9   Pass
assert(isequal(SortReversal(333),27556))

ans = 27556

10   Pass
assert(isequal(SortReversal(503),63001))

ans = 63001

11   Pass
assert(isequal(SortReversal(555),76729))

ans = 76729

12   Pass
assert(isequal(SortReversal(737),135424))

ans = 135424

13   Pass
assert(isequal(SortReversal(777),150544))

ans = 150544

14   Pass
assert(isequal(SortReversal(999),249001))

ans = 249001