Phone Number Prefix

Given phone-number strings, return false if any number is a prefix of another number, including an identical duplicate. Return true when no number is a prefix of another. The empty input has no conflicting pair.

  • Input: arg1 = ["911", "91125", "222"]
  • Output: false
Examples
Input: []
Output: 0
Hints

Phone Number Prefix

Given phone-number strings, return `false` if any number is a prefix of another number, including an identical duplicate. Return `true` when no number is a prefix of another. The empty input has no conflicting pair.