leetle

Daily challenge for 2025-07-25

206. Validate Email Format

Write a function solve that checks if a string is a valid email format. A valid email has the format: username@domain.extension where username and domain contain only letters, numbers, dots, and hyphens, and extension contains only letters.

Example:
Input: "user@example.com"
Output: True

Run this challenge interactively in Python or JavaScript when the app loads.