Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Can we use a data structure to quickly query whether we have a certain ingredient?
Once we verify that we can make a recipe, we can add it to our ingredient data structure. We can then check if we can make more recipes as a result of this.