You need to sign in or sign up before continuing.×
6 kyu
Free pizza
517 of 1,158kingcobra
Description:
In an attempt to boost sales, the manager of the pizzeria you work at has devised a pizza rewards system: if you already made at least 5 orders of at least 20 dollars, you get a free 12 inch pizza with 3 toppings of your choice.
However, the rewards system may change in the future. Your manager wants you to implement a function that, given a dictionary of customers, a minimum number of orders and a minimum order value, returns a set of the customers who are eligible for a reward.
Customers in the dictionary are represented as:
{ 'customerName' : [list_of_order_values_as_integers] }
See example test case for more details.
Fundamentals
Puzzles
Similar Kata:
Stats:
Created | Jul 2, 2017 |
Published | Jul 2, 2017 |
Warriors Trained | 1902 |
Total Skips | 137 |
Total Code Submissions | 4223 |
Total Times Completed | 1158 |
Python Completions | 517 |
Ruby Completions | 122 |
JavaScript Completions | 550 |
Total Stars | 33 |
% of votes with a positive feedback rating | 93% of 288 |
Total "Very Satisfied" Votes | 251 |
Total "Somewhat Satisfied" Votes | 35 |
Total "Not Satisfied" Votes | 2 |
Total Rank Assessments | 14 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |