InterviewDB Question

Item Selection: Select the Maximum Value Subset Under a Weight Constraint (0/1 Knapsack)

Question Details

Problem Given a list of items each with a weight and a value, and a maximum weight capacity, select a subset of items (each used at most once) to maximize total value without exceeding the capacity. Return the selected items and the total value. Exam…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Onsite Phone