Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c2464ec

Browse files
Update pascalTraingleRecursive.py
1 parent 1a9d1e5 commit c2464ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎DSA-master/Day-1/pascalTraingleRecursive.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def computeCoeff(row, col):
55
if col == 0 or row == col:
66
return 1 # for the corners of each row
77
else:
8-
return computeCoeff(row-1, col) + computeCoeff(row-1, col-1) # take the numbers in previous row and left of that number
8+
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
99

1010
def printTriangle(n):
1111
"""

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /