The question is not clear on single letter '0'

  • 15

    For example, "2706". When we read '0', shall we return zero decode way? Most solutions seem to combine it with the next letter and treats it as 6 instead of 06. More clarification should be given.

  • 12

    I agree that the question is not 100% clear. But these extra instructions should make it easy.

    • '0' should not be considered as a valid encoding.
    • '01', '02'...'09' are also not valid encodings.
    • '10'.'20' are valid encodings.

  • 0
    This post is deleted!

Log in to reply

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