Techniques Used String Basic Approach For each sentence, just count the number of spaces, and add 1 to the resultant count to get the number of words. Do this for every sentence in sentences array, while retaining the most words found in mostWords...

Markdown supported · ⌘↵ to post
No responses yet.