प्रश्न
00:00

12. Letter Combinations of a Phone Number

मध्यमबैकट्रैकिंगAmazonGoogle

Given a string containing digits from 2 to 9, return all possible letter combinations that the number could represent.

उदाहरण 1:

इनपुट: digits = "23"
आउटपुट: ["ad","ae","af","bd","be","bf","cd","ce","cf"]

उदाहरण 2:

इनपुट: digits = ""
आउटपुट: []

सीमाएँ:

  • 0 <= digits.length <= 4
  • digits[i] is a digit from 2 to 9.
मुख्य कोड मोड
● अपने आप सहेजा गयापंक्ति 1, कॉलम 1