82. Pascal's Triangle II

Return the k-th row of Pascal's triangle (0-indexed).
Example 1
Input: rowIndex = 1
Output: [1,1]
Explanation: Row 1 is [1,1].
Example 2
Input: rowIndex = 3
Output: [1,3,3,1]
Explanation: The fourth row of Pascal's triangle.
Example 3
Input: rowIndex = 0
Output: [1]
Explanation: Row 0 is [1].
arrayseasy
JavaScript
Loading...
Line 1, Char 1