LeetCode(二)DFS+回溯專題

LeetCode 17. Letter Combinations of a Phone Number 給定一個僅包含數字 2-9 的字符串,返回全部它能表示的字母組合。 給出數字到字母的映射以下(與電話按鍵相同)。注意 1 不對應任何字母。 示例: 輸入:「23」 輸出:[「ad」, 「ae」, 「af」, 「bd」, 「be」, 「bf」, 「cd」, 「ce」, 「cf」]. 說明: 儘管上面
相關文章
相關標籤/搜索