Given a digit string, return all possible letter combinations that the number could represent.
A mapping of digit to letters (just like on the telephone buttons) is given below.
Note:
Although the above answer is in lexicographical order, your answer could be in any order you want.
解法1:
先建一个map来存储每一个字母可以映射的字母,然后就是常规的backtracking的解法。没有特殊的地方。
C++
Java