Search
⌘K

Leetcode 2115. Find All Possible Recipes from Given Supplies

Given recipes whose ingredients may include other recipes and an initial set of supplies, determine which recipes can be produced; the core challenge is dependency resolution on a directed graph (topological ordering or DFS) while handling cycles and using supplies as base nodes.

Asked at:

Google

Google


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Late December, 2024

Google

Google

Mid-level

Find All Possible Recipes from Given Supplies

Late July, 2024

Google

Google

Junior

Comments

Your account is free and you can post anonymously if you choose.