7 kyu
Make a square box!
782 of 2,128user2514386
Description:
Easy; Make a box
Given a number as a parameter (between 2 and 30), return an array containing strings which form a box.Like this:
n = 5
[
'-----',
'- -',
'- -',
'- -',
'-----'
]
n = 3
[
'---',
'- -',
'---'
]
Strings
Arrays
ASCII Art
Algorithms
Similar Kata:
Stats:
Created | Dec 28, 2016 |
Published | Dec 28, 2016 |
Warriors Trained | 3117 |
Total Skips | 60 |
Total Code Submissions | 5043 |
Total Times Completed | 2128 |
Python Completions | 782 |
JavaScript Completions | 1200 |
PHP Completions | 120 |
Crystal Completions | 12 |
Ruby Completions | 83 |
Total Stars | 31 |
% of votes with a positive feedback rating | 88% of 336 |
Total "Very Satisfied" Votes | 268 |
Total "Somewhat Satisfied" Votes | 58 |
Total "Not Satisfied" Votes | 10 |
Total Rank Assessments | 12 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |