Here is the output:
Submission Result: Wrong Answer
Input: " "
Any ideas? I can post my code if it helps.
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 "".
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.