← Questions

Filter contacts by email domain

0
StripeCodingLast asked Jan 2026

Contacts arrive as name,email,phone lines. Given a domain (which may be written with or without a leading @), return the original lines whose email belongs to that domain, comparing case-insensitively and keeping input order. Skip malformed lines and malformed addresses: an email needs exactly one @ and something before it.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding