MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / pascal_triangle.py

File pascal_triangle.py

matrix/pascal_triangle.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2This implementation demonstrates how to generate the elements of a Pascal's triangle.
3The element havingva row index of r and column index of c can be derivedvas follows:
4triangle[r][c] = triangle[r-1][c-1]+triangle[r-1][c]

Callers

nothing calls this directly

Calls 1

benchmarkFunction · 0.70

Tested by

no test coverage detected