Pascal's Triangle 2
easy
Description : 1. Given an integer rowIndex, return the rowIndexth (0-indexed) row of the Pascal's triangle. 2. In Pascal's triangle, each number is the sum of the two numbers directly above OR it is also a pattern which can be made from combination maths 3. For More clearance, watch video till explanation of question. eg. row 0 -> 1 row 1 -> 1 1 row 2 -> 1 2 1 row 3 -> 1 3 3 1 row 4 -> 1 4 6 4 1
Constraints
1. 0 <= rowIndex <= 33
Format
Input
rowIndex = 3
Output
1 3 3 1
Example
Sample Input
3
Sample Output
1 3 3 1