Compute the nth row of Pascal's triangle efficiently.
Constraints
Example
>>> pascals_triangle_row(0) [1] >>> pascals_triangle_row(1) [1, 1] >>> pascals_triangle_row(4) [1, 4, 6, 4, 1]
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints