← Questions

Find every recipe you can make from your supplies

0
AmazonCodingLast asked Oct 2026

You have an unlimited stock of some basic supplies and a book of recipes. Each recipe has a unique name and a list of ingredients; an ingredient can be a supply, the name of another recipe in the book, or something you don't have. A recipe can be made when all of its ingredients are available, and a dish you made can be used as an ingredient in other recipes. Return every recipe that can be made.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding