Problem description not clear

  • 0

    A message containing letters from A-Z is being encoded to numbers using the following mapping:

    'A' -> 1
    'B' -> 2
    'Z' -> 26

    Given an encoded message containing digits, determine the total number of ways to decode it.

    How about empty message? In the right solution, it's 0 which is not clearly clarified in the problem description. I really think this not a good one. What do you think about it? @Global-Moderators @administrators

  • 1

    @Salkexy2 Yes, that's kind of unclear but that's just one corner case which can be quickly located in the current OJ (since it will hint you, if you encountered WA). But if this is not in the current OJ, this problem can be tricky without any extra explanation. @1337c0d3r What do you think?

Log in to reply

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