Letter Combinations - Approach

Map each digit to its letters: 22 \to abc, 33 \to def, etc.

1.1. For each digit, try each of its mapped letters.

2.2. Recurse to the next digit.

3.3. When all digits are processed, add the combination to results.

If there are nn digits with average mm letters each, you generate O(mn)O(m^n) combinations.