aboutsummaryrefslogtreecommitdiff
path: root/max_product_word_len.cpp
diff options
context:
space:
mode:
authorJack Sangdahl <[email protected]>2025-01-29 11:46:16 -0700
committerJack Sangdahl <[email protected]>2025-01-29 11:46:16 -0700
commit2de9d2dce0fd4de524961ad5188a95410f4432c2 (patch)
tree0da068bf95592f39f2dd4f135b0e73b689df27d0 /max_product_word_len.cpp
parentad25ada54a68851b935f52f9d1bc4ec969583205 (diff)
downloadleetcode-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.cpp2
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;
}