Ezvor

3491. Phone Number Prefix

EasyArray Preparing judge… LeetCode
ArrayStringTrieSorting

Hints

Hint 1
Sort the array.
Hint 2
For every adjacent pair, check if the left number is a prefix of the right number.