Recipe Shopping Cart (Ingredients Still Needed)
Asked at Decagon · Coding Questions · Difficulty: Medium
You are building a recipe shopping-cart feature. The system stores several recipes. Each recipe requires a set of ingredients and a quantity for each ingredient. A user selects some recipes, and their current cart/pantry already contains some ingredients.
Loading the problem…
More Decagon interview questions
- Sliding Window Conversation Scores with Update and Percentile Query
- Recipe Shopping Cart with Ingredient Bulk Discounts (Undo/Redo)
- Design a Sliding Window Average with Insert and Optional Update
- Cooking App Cart with Nested Transactions
- Enumerate All Games of 4x4 Three-in-a-Row
- Sliding Window Average Calculation