Dynamic Programming: Knapsack - Subset Sum
Consider the following Python function implementing the space-optimized subset sum algorithm. Given
nums = [2, 3, 7] and S = 5, what is the value of dp[5] after processing all elements?