面试题 16.20. T9键盘(中等)- LeetCode

题目描述

面试题 16.20. T9键盘(中等)- LeetCode_第1张图片

自己解法

class Solution:
    def getValidT9Words(self, num: str, words: List[str]) -> List[str]:
        keyboard = {
   2:['a','b','c'],3:['d','e','f'],4:['g','h','i'],5:['j','k','l'],6:['m',

你可能感兴趣的:(LeetCode,列表,leetcode,字符串)