Facebook | Phone Screen | Letter Combinations of a Phone Number
3381
Mar 30, 2018
Aug 24, 2019
Variation of https://leetcode.com/problems/letter-combinations-of-a-phone-number
Given a string as input, return the list of all the possible patterns:
{ "1" : ['A', 'B', 'C'],
"2" : ['D', 'E'],
"12" : ['X'],
"3" : ['P', 'Q'] }Example:
Intput: "123"
Output: ["ADP","ADQ","AEP","AEQ","BDP","BDQ","BEP","BEQ","CDP","CDQ","CEP","CEQ","XP","XQ"]Comments (15)


