Why the expected answer can be "000000000000"?


  • 0
    E

    Today I used "00000" and "42455577" to be my testcases, I thought the expected answer from OJ would be "0", but somehow the fetched answer is "000000000000". I'm not sure if the presentation of "00000" should not be concerned because the problem description only has one sentence and doesn't explicitly specify that we don't need to consider the number such as 00000 could be an input string. I think OJ may consider updating something to make this part be more robust.


Log in to reply
 

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