Dashboard Temp Share Shortlinks Frames API

HTMLify

index.py
Views: 1 | Author: devwajahat
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
class Solution:
    def mostWordsFound(self, sentences: list[str]) -> int:

        sentence_count = []
        for i in sentences:

            count = 0

            words = i.split(" ")

            count += len(words)
            sentence_count.append(count)
        
        return max(sentence_count)