I think "1*" in example 2 should be 19 ways


  • 0
    M

    Input: "1*"
    there should be 19 ways:
    (1) interprets them as two letters from 11 to 19: 9 ways; [AA, AB, AC, AD, AE, AF, AG, AH, AI]
    (2) interprets them as one letter from 10 to 19 : 10 ways; [J, K, L, M, N, O, P, Q, R, S]
    then the total ways are 10 + 9 = 19 ways


  • 1

    10 is incorrect cause * could only represent 1 ~ 9


  • 0
    M

    @fallcreek
    ops... you are right
    this * is special...


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.