Pascal's Triangle
Description
Given a non-negative integer numRows, generate the first numRows of Pascal's triangle.
Example:
Solution
Last updated
Given a non-negative integer numRows, generate the first numRows of Pascal's triangle.
Example:
Last updated
In Pascal's triangle, each number is the sum of the two numbers directly above it.