Question 6
How can the auxiliary space complexity of 0/1 Knapsack DP be optimized from O(n * W) down to O(W)?
Updating the 1D array from right to left ensures that values from the previous row K[i-1][...] are preserved before being overwritten by row i.