6 kyu
MTV Cribs
365 of 763St3f4n
Description:
Task
Given n
representing the number of floors build a beautiful multi-million dollar mansions like the ones in the example below:
/\
/ \
/ \
/______\ number of floors 3
| |
| |
|______|
/\
/ \
/____\
| | 2 floors
|____|
/\
/__\ 1 floor
|__|
Note: whitespace should be preserved on both sides of the roof. Number of floors will go up to 30. There will be no tests with invalid input.
If you manage to complete it, you can try a harder version here.
Good luck!
Fundamentals
ASCII Art
Similar Kata:
Stats:
Created | Nov 22, 2016 |
Published | Nov 22, 2016 |
Warriors Trained | 1878 |
Total Skips | 215 |
Total Code Submissions | 3125 |
Total Times Completed | 763 |
JavaScript Completions | 251 |
Crystal Completions | 6 |
Python Completions | 365 |
Ruby Completions | 44 |
CoffeeScript Completions | 10 |
PHP Completions | 136 |
Total Stars | 28 |
% of votes with a positive feedback rating | 93% of 187 |
Total "Very Satisfied" Votes | 163 |
Total "Somewhat Satisfied" Votes | 23 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 8 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |