Daily challenge for 2025-11-08
312. 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.
Example:Input: words = ["abcw","baz","foo","bar","xtfn","abcdef"]Output: 16
Explanation: The two words can be "abcw", "xtfn" with lengths 4 * 4 = 16.
Run this challenge interactively in Python or JavaScript when the app loads.