Updated test case

Made a typo writing name instead of __name__
This commit is contained in:
bharath-123 2018-07-23 00:29:40 +05:30 committed by GitHub
parent 2f22ea1acd
commit d96048a7df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ def knapsack(W, wt, val, n):
dp[i][w] = dp[i-1][w]
return dp[n][w]
if name == "__main__":
if __name__ == "__main__":
val = [3,2,4,4]
wt = [4,3,2,3]
W = 6