Letter Combinations of a Phone Number
CodingOnsiteSoftware Engineer, Machine Learning EngineerReported Mar, 2026
Examples
Example 1:
Input: digits = "23"
Output: ["ad","ae","af","bd","be","bf","cd","ce","cf"]
Example 2:
Input: digits = ""
Output: []
Example 3:
Input: digits = "7"
Output: ["p","q","r","s"]