Count all possible strings from given mobile numeric keypad sequence
问题 How to count all possible string that can be formed from a given sequence of digits(from 2-9) where each digit represents a mobile button and is mapped to 3/4 alphabet. eg:- 2 is mapped to A,B,C, by pressing the button 2 three times "222", possible strings that can be formed are {"AAA","AB","BA","C"}. input= "2233", possible strings={"AADD","AAE","BDD","BE"}. I need a pseudo-code to implement the above problem. 回答1: Algorithm/Intuition: As it represents in the above image, for a single digit,