Remove the middle element from a vector
Remove the middle element of a vector?
*Example:*
[1,2,3] should return 2
[1,2,3,4] should return 2
[] should return...
Draw "C" in a zero matrix
Given a x-by-x matrix filled with zeros (x> 4). Use 1 to draw a letter C into it! Like this:
x = 5, y =
1 1 1 1 1
1 0 0 0 1
...
circa 2 anni fa
Risolto
Draw "T" inside a Zero Matrix
Given a x-by-x matrix filled with zeros (x> 2). Use 1 to draw a letter "T" into it! Like this:
x = 5, y =
1 1 1 1 1
0 0 1 0 0...
circa 2 anni fa
Risolto
Draw 'S'
draw S using nxn matrix, where n is odd and greater than 4
S = [1 1 1 1 1
1 0 0 0 0
1 1 1 1 1
0 0 0 0 1
...