6 kyu
Walk-up Stairs
248 of 497m47r1x
Description:
Raj was to move up through a pattern of stairs of a given number (n). Help him to get to the top using the function stairs.
##Keep in mind :
- If n<1 then return ' ' .
- There are a lot of spaces before the stair starts except for pattern(1)
##Examples : pattern(1)
1 1
pattern(6)
1 1
1 2 2 1
1 2 3 3 2 1
1 2 3 4 4 3 2 1
1 2 3 4 5 5 4 3 2 1
1 2 3 4 5 6 6 5 4 3 2 1
pattern(12)
1 1
1 2 2 1
1 2 3 3 2 1
1 2 3 4 4 3 2 1
1 2 3 4 5 5 4 3 2 1
1 2 3 4 5 6 6 5 4 3 2 1
1 2 3 4 5 6 7 7 6 5 4 3 2 1
1 2 3 4 5 6 7 8 8 7 6 5 4 3 2 1
1 2 3 4 5 6 7 8 9 9 8 7 6 5 4 3 2 1
1 2 3 4 5 6 7 8 9 0 0 9 8 7 6 5 4 3 2 1
1 2 3 4 5 6 7 8 9 0 1 1 0 9 8 7 6 5 4 3 2 1
1 2 3 4 5 6 7 8 9 0 1 2 2 1 0 9 8 7 6 5 4 3 2 1
ASCII Art
Fundamentals
Similar Kata:
Stats:
Created | Dec 12, 2015 |
Published | Dec 12, 2015 |
Warriors Trained | 1391 |
Total Skips | 55 |
Total Code Submissions | 2517 |
Total Times Completed | 497 |
JavaScript Completions | 248 |
Python Completions | 263 |
CoffeeScript Completions | 7 |
Total Stars | 27 |
% of votes with a positive feedback rating | 94% of 184 |
Total "Very Satisfied" Votes | 163 |
Total "Somewhat Satisfied" Votes | 19 |
Total "Not Satisfied" Votes | 2 |
Total Rank Assessments | 11 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |