Dynamic Programming21 sections · 916 units
Open in CourseQuiz: Subset Sum
Knowledge check
Check Your Understanding
In the Bitmask DP solution for Subset Sum, what does the state dp[mask] typically represent?
- A.The maximum element in the subset
- B.The sum of elements in the subset represented by mask
- C.Whether the sum equals the target
- D.The number of elements in the subset represented by mask