Astha369 / CPP_Problems

https://github.com/Astha369/CPP_Problems
4 stars 41 forks source link

Letter Combinations of a Phone Number#17 #85

Closed shubh1777 closed 1 year ago

shubh1777 commented 1 year ago

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.

A mapping of digits to letters (just like on the telephone buttons) is given below. Note that 1 does not map to any letters.

LeetCode url:https://leetcode.com/problems/letter-combinations-of-a-phone-number/description/