We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a9d1e5 commit c2464ecCopy full SHA for c2464ec
DSA-master/Day-1/pascalTraingleRecursive.py
@@ -5,7 +5,7 @@ def computeCoeff(row, col):
5
if col == 0 or row == col:
6
return 1 # for the corners of each row
7
else:
8
- return computeCoeff(row-1, col) + computeCoeff(row-1, col-1) # take the numbers in previous row and left of that number
+ return computeCoeff(row-1, col) + computeCoeff(row-1, col-1) # take the numbers in previous row same column and one column left of that number
9
10
def printTriangle(n):
11
"""
0 commit comments