Skip to content

Commit

Permalink
Update 1255.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
iglesias authored May 24, 2024
1 parent 0e09112 commit 9ef4801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leetcode/1255.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int solve(const vector<string>& words, const vector<int>& scores, vector<string>
{
int score = 0;
for (const string& word : subset) for (const char letter : word) score += scores[letter - 'a'];
ans = max(ans, scores);
ans = std::max(ans, scores);
}

if (words_i == words.size()) return ans;
Expand Down

0 comments on commit 9ef4801

Please sign in to comment.