Algorithm · Amazon · Easy
Implement find_repeat_customers(logs). The input logs is a collection of records describing customer visits to a store; each record contains a customer identifier and the time of entry. A customer counts as a repeat customer if they have entries on two or more distinct calendar dates. Several entries by the same customer on one calendar date do not, by themselves, make that customer a repeat customer. Return how many repeat customers appear in logs. Examples Example (as…