โ† TCS questions

Extract username from email string

Filed under TCS

The question

Given a string like an email (e.g., test@gmail.com), return only the username part as output (e.g., test).

No write-up yet. Related questions below have one.

Related TCS questions

Collected from public candidate posts and coding forums. Updated Nov 2026.