diff options
author | Jack Sangdahl <[email protected]> | 2025-01-29 11:46:16 -0700 |
---|---|---|
committer | Jack Sangdahl <[email protected]> | 2025-01-29 11:46:16 -0700 |
commit | 2de9d2dce0fd4de524961ad5188a95410f4432c2 (patch) | |
tree | 0da068bf95592f39f2dd4f135b0e73b689df27d0 /max_product_word_len.cpp | |
parent | ad25ada54a68851b935f52f9d1bc4ec969583205 (diff) | |
download | leetcode-2de9d2dce0fd4de524961ad5188a95410f4432c2.tar.gz leetcode-2de9d2dce0fd4de524961ad5188a95410f4432c2.zip |
chore: Fix vvd usages
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; } |