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

Stats:

CreatedDec 12, 2015
PublishedDec 12, 2015
Warriors Trained1391
Total Skips55
Total Code Submissions2517
Total Times Completed497
JavaScript Completions248
Python Completions263
CoffeeScript Completions7
Total Stars27
% of votes with a positive feedback rating94% of 184
Total "Very Satisfied" Votes163
Total "Somewhat Satisfied" Votes19
Total "Not Satisfied" Votes2
Total Rank Assessments11
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • m47r1x Avatar
  • zruF Avatar
  • adrian.eyre Avatar
  • hobovsky Avatar
  • LosBlobbos Avatar
Ad