LeetCodeMaximum Number of Words Found in SentencesMaximum Number of Words Found in SentencesEasyArrayStringSolution export function mostWordsFound(sentences: string[]): number { function countWord(sentence: string) { return sentence.split(' ').length; } return sentences.reduce((wordCount, sentence) => Math.max(wordCount, countWord(sentence)), 0); }LeetCodeMaximum Number of Words Found in Sentenceshttps://leetcode.com/problems/maximum-number-of-words-found-in-sentences