Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 538 Bytes

README.md

File metadata and controls

46 lines (37 loc) · 538 Bytes

Stair Problem

Change the function so it'll create an upside down stair according to the inputted number

Example:

Input:
5
Output:
*****
 ****
  ***
   **
    *
Input:
10
Output:
**********
 *********
  ********
   *******
    ******
     *****
      ****
       ***
        **
         *

Getting started

Prequisites

Steps

  1. Git clone the repo
  2. run npm install
  3. Change the function in main.ts
  4. run the test npm test