Pascal's Triangle II
Updated Feb 24, 2026
Problem
Return the rowIndex-th row of Pascal's triangle.
Constraints
0 <= rowIndex <= 33
Examples
Example 1
Input:
{"rowIndex": 3}
Output:
[1, 3, 3, 1]
Function Signature
def getRow(self, rowIndex: int) -> list[int]
How to Submit
Implement a Solution class with a getRow method.
Your method will be called with the input parameters and should return the answer.