Back to problems

Matching Contacts

Algorithm · Stripe · Medium

Requirements Read the complete input from stdin and pass the parsed data to solve(data). Part 1: assign every contact to a person whose email domain matches the contact's email domain. Part 2: for each person, remove contacts that violate that person's category preferences, then order the remaining contacts using that person's requested sort keys. Part 3 (follow-up): extend the category rules so that they can contain wildcards. The input uses the following JSON structure:…

Checking your access…