diff options
Diffstat (limited to 'max_product_word_len.cpp')
-rw-r--r-- | max_product_word_len.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/max_product_word_len.cpp b/max_product_word_len.cpp index c2e518d..e119ea1 100644 --- a/max_product_word_len.cpp +++ b/max_product_word_len.cpp @@ -10,7 +10,7 @@ public: chars[i][ch - 'a'] = 1; for (int j = 0; j < i; j++) if (!helper(chars[i], chars[j])) - ans = max(ans, (int)words[i].size() * (int)words[j].size()); + ans = max(ans, words[i].size() * words[j].size()); } return ans; } |