This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
t = [1 5 7 9];
north = 3;
td = [' 7 '
' 5 9'
' 1 '];
assert(isequal(rotate_tile(t, north),td))
index =
3
index =
4
index =
5
index =
6
td =
3×6 char array
' 7 '
' 5 9'
' 1 '
|
2 | Pass |
t = [27 8 5 46];
north = 4;
td = [' 46 '
' 5 27'
' 8 '];
assert(isequal(rotate_tile(t, north),td))
index =
4
index =
5
index =
6
index =
7
td =
3×6 char array
' 46 '
' 5 27'
' 8 '
|
3 | Pass |
t = [9 57 75 9];
north = 2;
td = [' 57 '
' 9 75'
' 9 '];
assert(isequal(rotate_tile(t, north),td))
index =
2
index =
3
index =
4
index =
5
td =
3×6 char array
' 57 '
' 9 75'
' 9 '
|
2516 Solvers
583 Solvers
Back to basics 11 - Max Integer
611 Solvers
812 Solvers
724 Solvers