Python Function for Data Processing

Asked at Meta · Coding & Leetcode-style Questions · Difficulty: Easy

Write a Python function `process_sales_data(sales_data: List[Dict[str, Any]]) -> List[str]` that receives a list of sales records, each record being a dictionary with the keys `id`, `customer_name`, `amount`, `sale_date`. The function should return a list of unique customer names with sales amounts greater than 1000 in the year 2021.

Loading the problem…