1class Solution {2 public:3 int mostWordsFound(vector<string> &sentences) {4 int res = 0;5 for (auto const &s : sentences) {6 int n = count(s.begin(), s.end(), ' ');7 res = max(res, n + 1);8 }9 return res;10 }11};
WPM •0 •0
ACC •0 •0
TIME •0