Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
assert(isequal(SortReversal(1),0))
x =
0
ans =
0
|
2 | Pass |
assert(isequal(SortReversal(3),1))
x =
1
ans =
1
|
3 | Pass |
assert(isequal(SortReversal(71),1225))
x =
35
ans =
1225
|
4 | Pass |
assert(isequal(SortReversal(113),3136))
x =
56
ans =
3136
|
5 | Pass |
assert(isequal(SortReversal(123),3721))
x =
61
ans =
3721
|
6 | Pass |
assert(isequal(SortReversal(199),9801))
x =
99
ans =
9801
|
7 | Pass |
assert(isequal(SortReversal(257),16384))
x =
128
ans =
16384
|
8 | Pass |
assert(isequal(SortReversal(321),25600))
x =
160
ans =
25600
|
9 | Pass |
assert(isequal(SortReversal(333),27556))
x =
166
ans =
27556
|
10 | Pass |
assert(isequal(SortReversal(503),63001))
x =
251
ans =
63001
|
11 | Pass |
assert(isequal(SortReversal(555),76729))
x =
277
ans =
76729
|
12 | Pass |
assert(isequal(SortReversal(737),135424))
x =
368
ans =
135424
|
13 | Pass |
assert(isequal(SortReversal(777),150544))
x =
388
ans =
150544
|
14 | Pass |
assert(isequal(SortReversal(999),249001))
x =
499
ans =
249001
|
2183 Solvers
Find state names that end with the letter A
708 Solvers
122 Solvers
273 Solvers
158 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!