SG_Hao

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2022年5月23日

摘要: 这个题目,果不其然,咱就直接暴力破解加剪枝,比对两个单词是是否有相同字母。时间复杂度就O(n*n*wordlength*wordlength)大概这么多吧,确实有点多。上代码了: int maxProduct(vector<string>& words) { int max = 0; int fla 阅读全文
posted @ 2022-05-23 15:21 SG_Hao 阅读(76) 评论(0) 推荐(0) 编辑