Seven Hundred Sixty Megabytes
0/1 knapsack with items and capacity . Values fit in a 32-bit int. The memory limit is 256 MB.
Compare int f[n+1][W+1] against the rolled int f[W+1]. What are the two footprints?
Sign in to answer questions and track your progress
Sign In