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))
ind =
3 4 5 6
ind =
3 4 1 2
aa =
5×2 char array
' 7'
' 9'
' 1'
' 5'
'11'
a =
3×6 char array
' 7 '
' '
' 1 '
a =
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))
ind =
4 5 6 7
ind =
4 1 2 3
aa =
5×2 char array
'46'
'27'
' 8'
' 5'
'11'
a =
3×6 char array
' 46 '
' '
' 8 '
a =
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))
ind =
2 3 4 5
ind =
2 3 4 1
aa =
5×2 char array
'57'
'75'
' 9'
' 9'
'11'
a =
3×6 char array
' 57 '
' '
' 9 '
a =
3×6 char array
' 57 '
' 9 75'
' 9 '
|
Return the 3n+1 sequence for n
5207 Solvers
Find the alphabetic word product
1999 Solvers
616 Solvers
200 Solvers
Getting the row and column location from a matrix
192 Solvers