mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-20 05:29:48 +00:00
updated testcase
Changed name to __name__. Sorry for the typo!
This commit is contained in:
parent
a9f9062080
commit
bd7054ace9
@ -28,7 +28,7 @@ def knapsack(W, wt, val, n):
|
||||
|
||||
return dp[n][w]
|
||||
|
||||
if name == '__main__':
|
||||
if __name__ == '__main__':
|
||||
'''
|
||||
Adding test case for knapsack
|
||||
'''
|
||||
|
Loading…
x
Reference in New Issue
Block a user