Specializations > Interview Preparation > Algorithms
Alexa Orrico (source project by Guillaume Salva)
08-02-2021 to 08-06-2021
Practice interview question originally appearing as task 12. Pascal's Triangle in (260) 0x0B. Python - Input/Output.
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
- Bayo Herbert - HerbertKartel