Pascal's Triangle at Twitter

Easy78.7% acceptance

This problem has 100.0% frequency at Twitter.

Problem Description

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 as shown: ![](https://upload.wikimedia.org/wikipedia/commons/0/0d/PascalTriangleAnimated2.gif)

Read full problem and hints

Topics

Also asked at 18 companies


More Twitter Questions

View all Twitter questions