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…