Letter Combinations of a Phone Number
Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order.

30:00

Letter Combinations of a Phone Number
medium
Topics
Companies

Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order.

Example 1:
Input: {"digits":"23"}
Output: ["ad","ae","af","bd","be","bf","cd","ce","cf"]
Constraints:
  • 0digits.length40 \leq \text{digits.length} \leq 4

  • digits[i] is a digit in the range [’2’,’9’][\text{'2'}, \text{'9'}].

Input
arr ={"digits":"23"}

Start

Input:

2

abc

3

def
Current Combination
_
Found Solutions (0)
Variables
No variables to display
DepthFunction Call
Stack empty
0/46