Pascal's triangle

Write a function to return the nth row in Pascal’s triangle

For example,
getRow(1) returns 1
getRow(2) returns 1 1
getRow(3) returns 1 2 1
getRow(4) returns 1 3 3 1

Share Comments