Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Examples:
Input n = 3 Output a is [ 2 2 2 2 1 2 2 2 2 ]
Input n = 5 Output a is [ 3 3 3 3 3 3 2 2 2 3 3 2 1 2 3 3 2 2 2 3 3 3 3 3 3 ]
19444 Solvers
Which values occur exactly three times?
3029 Solvers
Back to basics 19 - character types
177 Solvers
Create a Multiplication table matrix...
193 Solvers
186 Solvers
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply Today