Available question text
Print only the lines from a file that are exact phone numbers in either (xxx) xxx-xxxx or xxx-xxx-xxxx format. The task tests constructing a concise shell one-liner (regex/grep/awk/sed) that matches these digit-and-punctuation patterns precisely (no extra characters or whitespace).
Related questions
Continue with questions that share topics or the same question type.
- Find Products with Valid Serial Numbers
Coding
- Add Two Numbers
Coding · Linked List · Math · Recursion
- Add Two Numbers II
Coding · Linked List · Math · Stack
- Adding Two Negabinary Numbers
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 193. Valid Phone Numbers
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source