Pascal's triangle: Difference between revisions

Line 3,511:
const aux = n => {
if(n <= 1) return [1]
const result = Array.from({ length: n })
const prevLayer = aux(n - 1)
const shifted = [0, ...prevLayer]
Anonymous user