ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
Which of the following lines completes the above code?
Correct Answer: A — find_max(ans[itm - 1][w - wt[itm - 1]] + val[itm - 1], ans[itm - 1][w])
find_max(ans[itm - 1][w - wt[itm - 1]] + val[itm - 1], ans[itm - 1][w]) completes the above code.