LeetCode 193 - Valid Phone Numbers
LeetCode Problem 193 Difficulty: 🟢 Easy Topics: Shell Solution Problem Understanding This problem asks us to process a text file named file.txt and print only the phone numbers that match one of two valid formats. The valid formats are: xxx-xxx-xxxx and (xxx) xxx-xxxx In both formats, every x represents a single digit from 0 to 9 . The task is not to transform the input or extract partial matches. Instead,...