Letter Combinations of a Phone Number
Medium
Recursion & Backtracking
Given a string of digits 2-9, print all letter combinations the number could represent using the standard phone keypad (2=abc, 3=def, 4=ghi, 5=jkl, 6=mno, 7=pqrs, 8=tuv, 9=wxyz), in lexicographic order, space-separated on one line.
Constraints
1 <= len(digits) <= 4
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.