Search
⌘K

Leetcode 3491. Phone Number Prefix

Given a list of phone numbers (strings), determine whether the list is "consistent" by checking if any number is a prefix of another. Efficient solutions detect prefix relationships among strings (e.g., by sorting and comparing neighbors or using a trie).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Your account is free and you can post anonymously if you choose.