We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 341efea commit c3b3385Copy full SHA for c3b3385
C++/maximum-product-of-word-lengths.cpp
@@ -23,7 +23,7 @@ class Solution {
23
return max_product;
24
}
25
26
- vector<string> counting_sort(vector<string>& words) {
+ vector<string> counting_sort(const vector<string>& words) {
27
const int k = 1000; // k is max length of words in the dictionary
28
vector<vector<string>> buckets(k);
29
for (const auto& word : words) {
0 commit comments