Pascal's Triangle

Solution Code

Time Complexity

O(numRows^2)

Space Complexity

O(numRows^2) to store the generated triangle