Implement the LongestWordSubscriber subscriber that finds the longest word from a data stream.
If the data stream is empty, show null. If there are 2 or more longest words whose lengths are equal, show the first one.
Implement the LongestWordSubscriber subscriber that finds the longest word from a data stream.
If the data stream is empty, show null. If there are 2 or more longest words whose lengths are equal, show the first one.
Create a free account to access the full topic