Maximum Product of Word Lengths
Input: ["abcw","baz","foo","bar","xtfn","abcdef"]
Output: 16
Explanation: The two words can be "abcw", "xtfn".Input: ["a","ab","abc","d","cd","bcd","abcd"]
Output: 4
Explanation: The two words can be "ab", "cd".Input: ["a","aa","aaa","aaaa"]
Output: 0
Explanation: No such pair of words.Solution
class Solution {
public int maxProduct(String[] words) {
}
}Last updated