
pascalRow
For a given non negative integer n find the n-th row of Pascal’s triangle.
Example
- For
n = 0
, the output should bepascalRow(n) = [1]
- For
n = 3
, the output should bepascalRow(n) =[1,3,3,1]
-
[execution time limit] 1 second
-
[input] integer n
Non negative integer
0 <= n <= 100
-
[output] array.integer
- The
n-th
row of the Pascal’s Triangle
- The
Post Comment