318. Maximum Product of Word Lengths
Given a string array words, return the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. If no such two words exist, return 0.
- new solution update 2022.05.28
c++
1 | struct Trie { |
- Time : O(n*m^2)
- Space : O(m)
c++
1 | class Solution { |