So I'm right...right?

  • -1

    Here is the output:

    Submission Result: Wrong Answer

    Input: " "
    Output: ""
    Expected: ""

    Any ideas? I can post my code if it helps.

  • 0
    This post is deleted!

  • 0

    At the beginning ,I thought a space could appear at the begining or the end of the string.
    Actually,the example shows us it doesn't.


    So,considing a Input:" ".It means there is no any word to be split.We just output "".

Log in to reply

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