Back to DSA sheet

Letter Combinations of a Phone Number

MediumBacktracking
Open on LeetCodeAmazonGoogleMeta

Given digits 2-9, return all letter combinations the number could represent on a telephone keypad.

Constraints
  • 0 <= digits.length <= 4
  • digits[i] is in the range 2-9
Sheets
Blind 75Grind 75NeetCode 150NeetCode 250
letter-combinations-of-a-phone-number.cpp
Loading editor
Custom input (stdin)
Output

Run your code to see its output.