-
Completed at: 2023-07-06T20:09:04.917Z
-
Completed languages: java
-
Tags: Arrays, Strings, Fundamentals
-
Rank: 8 kyu
Write a function to split a string and convert it into an array of words.
"Robin Singh" ==> ["Robin", "Singh"]
"I love arrays they are my favorite" ==> ["I", "love", "arrays", "they", "are", "my", "favorite"]
Words will be separated by exactly one space, without leading or trailing spaces.
There will only be letters and spaces in the input string.