frazynondo / same_mealcheck_pysolution Goto Github PK
View Code? Open in Web Editor NEWI was once asked on a Yelp SWE interview to write code that add a list of meals and a same meal checker function. Thought I should share my solution here in both Java[For Java solution go into the Java Algo section ] and Python. I took the Builder Design Pattern approach which enables us to apply same method chaining when adding recipes. Enjoy