106. Pascal's Triangle II
EasyDynamic Programming
Given an integer `rowIndex`, return the `rowIndex`th (**0-indexed**) row of the **Pascal's triangle**. In **Pascal's triangle**, each number is the sum of the two numbers directly above it.
Examples
Input: 3
Output: [1,3,3,1]
Explanation: Row 3 of Pascal's triangle.
Constraints
- 0 <= rowIndex <= 33
Loading...
Run checks all cases above. Submit evaluates all test cases.