Given an integer numRows, return the first numRows of Pascal's triangle. In Pascal's triangle, each number is the sum of the two numbers directly above it. Pascal's triangle can be generated using the ...
The triangle starts with [1] at the top. Each number is the sum of the two numbers directly above it in the previous row. The first and last number of each row are always 1.