Parse Email Addresses from a Log String
Asked at Microsoft · Coding Questions · Difficulty: Medium · Last asked Feb 1, 2026
A log line holds many email records separated by semicolons. A record can carry a display name in quotes, notes in parentheses, or an address in angle brackets, and quotes and parentheses may themselves contain semicolons. Write a function that returns every distinct valid address in the line, in the order each one first appears.
Loading the problem…
More Microsoft interview questions
- LLM conceptual questions
- Tiny Next-Token Prediction Model (PyTorch Fill-In)
- Roofline Analysis and Mixed-Precision Gradients for Matmul
- Design Search Autocomplete / Typeahead
- Design a Chatbot Personalization / Memory System
- Design a Job Scheduler / ETL Pipeline