Python O(n)
python\nclass Solution:\n    def largestWordCount(self, messages: List[str], senders: List[str]) -> str:\n        count = defaultdict(int)\n        largest, nam
```python\nclass Solution:\n    def largestWordCount(self, messages: List[str], senders: List[str]) -> str:\n        count = defaultdict(int)\n        largest, name = 0, \'\'\n        for i in range(len(messages)):\n            count[senders[i]] += messages[i].count(\' \') + 1\n            if count[senders[i]] > largest \\\n            or (count[senders[i]] == largest and senders[i] > name):\n                largest = count[senders[i]]\n                name = senders[i]\n        return name\n```
['Python']