Search
⌘K

Leetcode 2114. Maximum Number of Words Found in Sentences

Given an array of sentences where words are separated by single spaces, compute the number of words in each sentence and return the maximum count. Note: sentences have no leading/trailing spaces and words are separated by exactly one space.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.