LeetCode-318. Maximum Product of Word Lengths
发布时间:2023-12-13 20:54:51 221
相关标签:
Given a string array words
, find the maximum value of length(word[i]) * length(word[j])
where the two words do not share common letters. You may assume that each word will contain only lower case letters. If no such two words exist, return 0.
Example 1:
Input:
Output:
The two words can be
.
Example 2:
Input:
Output:
The two words can be
.
Example 3:
Input:
Output:
No such pair of words.
题解:
给位运算跪一下好吧orz
文章来源: https://blog.51cto.com/u_14150327/5564420
特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报