天天看點

leetcode第一刷_Letter Combinations of a Phone Number

水題。數字一共就9個,去掉1是用來顯示标點的,剩下8個。

窮舉一下map,然後有幾個數字,就輸出這幾個數字的排列,是一個dfs嘛。