So I'm right...right?


  • -1
    L

    Here is the output:

    Submission Result: Wrong Answer

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

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


  • 0
    S
    This post is deleted!

  • 0
    S

    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.

    ScreenShot

    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.