Unreasonable answers


  • 0
    Z

    While I was implementing my solution, I considered many edge cases, including this "101".

    However, "One Hundred One" is considered correct while "One Hundred And One" is wrong. Isn't this sarcastic? Everyone knows which should be the right form.

    I just deleted the part dealing with such edge cases and it passed the test.


  • 0
    C

    Yeah I had a similar problem. I added "ands" a lot to mine. I agree "One Hundred and One" sounds more correct but I don't think "One Hundred One" is incorrect either. Also a lot of small edge cases take away from the main concept of the problem like in this case, so I think it's justifiable.


  • 0
    Z

    Well, okay, now that it is already here... I spent some effort in listing all those situations requiring "And"s, which turns out to be useless. No wonder it is some Medium difficulty problem...


Log in to reply
 

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