Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 638. Shopping Offers
Given unit prices, unlimited-use special bundle offers, and a target quantity for each of up to 6 items, compute the minimum cost to buy exactly those quantities without exceeding them. The core challenge is a small-dimensional combinatorial optimization over the needs vector that’s typically solved by state-space search with pruning/memoization (DFS/DP) to try combinations of offers.
Asked at:
Uber
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Mid November, 2025
Uber
Mid-level
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.