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…
More Meta interview questions
- LLM conceptual questions
- Implement a Two-Hidden-Layer MLP with Backpropagation in NumPy
- Dot Product with Run-Length Encoded Vectors
- Count Lakes Wrapped by a Given Island
- Minimum Remove to Make Valid Parentheses
- LLM with Beam Search and Nucleus Sampling (Meta MSL)