Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 362 Bytes

File metadata and controls

12 lines (9 loc) · 362 Bytes

Problem 5: Binomial Extraction (Pascal's Triangle II)

Problem Statement

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.

Input Format

  • An integer rowIndex.

Example

Input: rowIndex = 3
Output: [1, 3, 3, 1]