We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9f9062 commit bd7054aCopy full SHA for bd7054a
dynamic_programming/knapsack.py
@@ -28,7 +28,7 @@ def knapsack(W, wt, val, n):
28
29
return dp[n][w]
30
31
-if name == '__main__':
+if __name__ == '__main__':
32
'''
33
Adding test case for knapsack
34
0 commit comments