Christmas Tree

February 8, 2022 ยท View on GitHub

Given a number of rows render a tree with that many rows. For example, given 3 rows render the following tree:

  *
 ***
*****
  |
   *
  ***
 *****
*******
   |

Given 5 rows it should render the following:

    *
   ***
  *****
 *******
*********
    |