(500) 0x1F. Pascal's Triangle

Specializations > Interview Preparation > Algorithms


Project author

Alexa Orrico (source project by Guillaume Salva)

Assignment dates

08-02-2021 to 08-06-2021

Description

Practice interview question originally appearing as task 12. Pascal's Triangle in (260) 0x0B. Python - Input/Output.

Provided file(s)


Mandatory Tasks

✅ 0. Pascal's Triangle

Create a function def pascal_triangle(n): that returns a list of lists of integers representing the Pascal’s triangle of n:

  • Returns an empty list if n <= 0
  • You can assume n will be always an integer

File(s): 0-pascal_triangle.py


Student