Unclear Description !

  • -1

    The problem description mentions that if there is no last word, the output should be 0. However, for the Test Case: "a ", the mentioned expected output is coming out to be 1. Can someone explain what is going on here?

Log in to reply

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