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:

CreatedJul 2, 2017
PublishedJul 2, 2017
Warriors Trained1902
Total Skips137
Total Code Submissions4223
Total Times Completed1158
Python Completions517
Ruby Completions122
JavaScript Completions550
Total Stars33
% of votes with a positive feedback rating93% of 288
Total "Very Satisfied" Votes251
Total "Somewhat Satisfied" Votes35
Total "Not Satisfied" Votes2
Total Rank Assessments14
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • kingcobra Avatar
  • anter69 Avatar
  • kazk Avatar
  • adrian.eyre Avatar
  • Voile Avatar
  • saudiGuy Avatar
Ad