Pascal Triangle Row Problem

Pascal Triangle Row Problem — ExecCode School DSA Practice

Solve the Pascal Triangle Row problem on ExecCode. Free online school DSA practice in Math. Write and run code in Java, C++, Python — no signup required to run.

Problem description

You are given a whole number N. Your task is to print only row number N from Pascal's triangle. Use spaces the same way the examples do.

Examples

Input 0; Output [1]. Input 1; Output [1, 1]

Constraints

0<=rowIndex<=33

Practice Pascal Triangle Row free on ExecCode. Browse DSA problems, topic map, and placement guides.