Solution Review: Pascal's Triangle

Solution review to the exercise for recursion and function composition.


The problem can be solved using either the function composition or recursion. Let’s look at the two approaches individually.

Recursion approach

For this solution, factor out the base cases and recursion cases.

Get hands-on with 1200+ tech skills courses.