Which Recipes Can Be Made When Ingredients Can Themselves Be Recipes
Company: Amazon
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Technical Screen
Overview: Given recipes with their ingredient lists and an unlimited stock of basic supplies, return every recipe that can be made, in sorted order, where some ingredients are themselves other recipes. Tests modeling dependencies as a directed graph and handling missing ingredients and recipes that depend on each other in a cycle.
Read the full Amazon Software Engineer interview experience this question came from