Which of the following lines should be inserted to complete the above code?
ans[i - arr[j - 1]][j - 1]
ans[i][j]
ans[i][j] || ans[i - arr[j - 1]][j - 1]
ans[i][j] && ans[i - arr[j - 1]][j - 1]
(C) ans[i][j] || ans[i - arr[j - 1]][j - 1]
Explanation:
The line "ans[i][j] || ans[i - arr[j - 1]][j - 1]" completes the above code.