mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-07 19:46:30 +08:00
Updated test case
Made a typo writing name instead of __name__
This commit is contained in:
@ -12,7 +12,7 @@ def knapsack(W, wt, val, n):
|
|||||||
dp[i][w] = dp[i-1][w]
|
dp[i][w] = dp[i-1][w]
|
||||||
|
|
||||||
return dp[n][w]
|
return dp[n][w]
|
||||||
if name == "__main__":
|
if __name__ == "__main__":
|
||||||
val = [3,2,4,4]
|
val = [3,2,4,4]
|
||||||
wt = [4,3,2,3]
|
wt = [4,3,2,3]
|
||||||
W = 6
|
W = 6
|
||||||
|
Reference in New Issue
Block a user