Skip to content

Commit bd7054a

Browse files
authored
updated testcase
Changed name to __name__. Sorry for the typo!
1 parent a9f9062 commit bd7054a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dynamic_programming/knapsack.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def knapsack(W, wt, val, n):
2828

2929
return dp[n][w]
3030

31-
if name == '__main__':
31+
if __name__ == '__main__':
3232
'''
3333
Adding test case for knapsack
3434
'''

0 commit comments

Comments
 (0)