OOD 面试真题

[Google] Design a recipe

https://www.1point3acres.com/bbs/thread-805786-1-1.html

Similar question: 某code 2115

Example.

input: recipe, a list of items

hamburger {

bread, steak}

bread {

flour,yeast}

steak {

beef, butter}

return a map of recipe, key is a recipe, value is its raw ingredients.

What are the ambiguities? How do we design the class?

Clarification

Ambiguities