about | help | code help+videos | done | prefs |
You are having dinner with your significant other and you would like to have soup if it is free. The restaurant offers free soup if the total purchase of both of your entrees added together is at least $20 and each of you orders at least $5 worth of non-entrees (desserts and appetizers). Each array list identifies the amount of money each of you spends on the appetizer, entree, and dessert (in that order). Return true if you get free soup. Else if no soup for you, then return false. listFreeSoup([6, 11, 0], [3, 16, 4]) → true listFreeSoup([6, 8, 0], [0, 6, 5]) → false listFreeSoup([4, 12, 0], [5, 16, 5]) → false ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100 Post-solution available
Copyright Nick Parlante 2017 - privacy