Given a string representing a phone number, determine if all digits are unique. If the input is restricted to a fixed set of digits (e.g., 0-9), the space complexity can be considered O(1).
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.