问道题,找到电话按键能组成的所有的词# JobHunting - 待字闺中
K*n
1 楼
Suppose we have a dictionary of words. Given a phone number, determine all t
he words that can be made from it using the letters corresponding to each di
git on a 12-key phone keypad.
这是不是典型的prefix tree问题,除此之外有没有其他解法?谢谢!
he words that can be made from it using the letters corresponding to each di
git on a 12-key phone keypad.
这是不是典型的prefix tree问题,除此之外有没有其他解法?谢谢!