LeetCode solutions

3782. Find Valid Emails

My accepted SQL solution to LeetCode problem 3782, Find Valid Emails, running in 574ms.

  • Difficulty: Easy
  • SQL
  • Runtime 574ms
  • Memory 0.0B

Read the problem on LeetCode View on GitHub

SQL

Accepted on LeetCode — runtime 574ms, memory 0.0B, accepted 2026-01-01.

sql
SELECT user_id, email
FROM Users
WHERE email REGEXP '^[a-zA-Z0-9_]+@[a-zA-Z]+\\.com$'
ORDER BY user_id ASC;

Source