Python Data Processing Question
Asked at Microsoft · Coding & Leetcode-style Questions · Difficulty: Easy
Please write a Python function that takes a list of dictionaries as input. Each dictionary contains information about an employee, such as name, age, and department. The function should return the average age of employees in each department. Provide the function signature, complete solution, test cases, and data scale explanation.
Loading the problem…
More Microsoft interview questions
- LLM conceptual questions
- Transformer Roofline and FP32→FP16 Drill
- Tiny Next-Token Prediction Model (PyTorch Fill-In)
- DNA Shotgun Sequencing: Chain and Eulerian Path Reconstruction
- Design Search Autocomplete / Typeahead
- Design a Chatbot Personalization / Memory System