InterviewDB Question

Treasure Room: Maximize Value with Weight-Constrained Knapsack Variant

Question Details

Problem You enter a treasure room containing n items. Each item has a weight, a value, and a fragility rating. You can carry at most W total weight. Additionally, if you carry any fragile item (fragility > 0), the total fragility score of all chosen…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding