InterviewDB Question

Shipping Cost: Calculate the Optimal Shipping Cost Across Multiple Carrier Rate Tables

Question Details

Problem You have multiple shipping carriers. Each carrier has a rate table: a list of (max_weight, cost) tiers. Given a package weight, each carrier charges the cost of the first tier whose max_weight >= package_weight, or is ineligible if the packag…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Phone