**Problem Statement:**
Given the required input arguments, write an efficient algorithm to solve the **0/1 Knapsack** problem. Implement the required logic as specified by standard definitions for this classic algorithmic challenge.
**Hint / Expected Approach:**
2D DP table weight × items
**Edge Cases to Consider:**
- (1) Zero capacity
- (2) All items exceed capacity
- (3) Single item