Skip to content

Commit c3b3385

Browse files
committed
Update maximum-product-of-word-lengths.cpp
1 parent 341efea commit c3b3385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/maximum-product-of-word-lengths.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Solution {
2323
return max_product;
2424
}
2525

26-
vector<string> counting_sort(vector<string>& words) {
26+
vector<string> counting_sort(const vector<string>& words) {
2727
const int k = 1000; // k is max length of words in the dictionary
2828
vector<vector<string>> buckets(k);
2929
for (const auto& word : words) {

0 commit comments

Comments
 (0)