当前位置: 首页 > news >正文

网站开发 报价seo海外

网站开发 报价,seo海外,代做ansys网站,建行583. 两个字符串的删除操作 - 力扣(LeetCode) 状态:查看思路后AC。 和查找子序列的操作类似,但是考虑的是删除操作。代码如下: class Solution { public:int minDistance(string word1, string word2) {int len1 wor…

583. 两个字符串的删除操作 - 力扣(LeetCode)

状态:查看思路后AC。

和查找子序列的操作类似,但是考虑的是删除操作。代码如下:

class Solution {
public:int minDistance(string word1, string word2) {int len1 = word1.size(), len2 = word2.size();vector<vector<int>> dp(len1+1, vector<int>(len2+1, 0));for(int i = 0; i <= len1; ++i) dp[i][0] = i;for(int j = 0; j <= len2; ++j) dp[0][j] = j;for(int i = 1; i <= len1; ++i){for(int j = 1; j <= len2; ++j){if(word1[i-1] == word2[j-1]) dp[i][j] = dp[i-1][j-1];else dp[i][j] = min(dp[i-1][j]+1, dp[i][j-1]+1);}}return dp[len1][len2];}
};

72. 编辑距离 - 力扣(LeetCode)

状态:查看思路后AC。

综合了前面几题,在不同的情况下要考虑增、删、改三种情况,对于多个数的求min技巧get(min({num1, num2, num3});),代码如下:

class Solution {
public:int minDistance(string word1, string word2) {int len1 = word1.size(), len2 = word2.size();vector<vector<int>> dp(len1+1, vector<int>(len2+1, 0));for(int i = 0; i <= len1; ++i) dp[i][0] = i;for(int j = 0; j <= len2; ++j) dp[0][j] = j;for(int i = 1; i <= len1; ++i){for(int j = 1; j <= len2; ++j){if(word1[i-1] == word2[j-1]) dp[i][j] = dp[i-1][j-1];else dp[i][j] = min({dp[i-1][j], dp[i][j-1], dp[i-1][j-1]})+1;}}return dp[len1][len2];}
};


文章转载自:
http://dinncomotorable.tqpr.cn
http://dinncoconvalesce.tqpr.cn
http://dinncocox.tqpr.cn
http://dinncosemiblind.tqpr.cn
http://dinncogangly.tqpr.cn
http://dinncopalpability.tqpr.cn
http://dinncosacrificial.tqpr.cn
http://dinncoclavecinist.tqpr.cn
http://dinncospinthariscope.tqpr.cn
http://dinncobudlet.tqpr.cn
http://dinncofiguration.tqpr.cn
http://dinncoromper.tqpr.cn
http://dinncocynegetic.tqpr.cn
http://dinncodemandable.tqpr.cn
http://dinncodelegalize.tqpr.cn
http://dinncoandrew.tqpr.cn
http://dinncopolypnea.tqpr.cn
http://dinncojingling.tqpr.cn
http://dinncoredivious.tqpr.cn
http://dinncoirgb.tqpr.cn
http://dinncokiss.tqpr.cn
http://dinncountasted.tqpr.cn
http://dinncopapular.tqpr.cn
http://dinncoginseng.tqpr.cn
http://dinncosalutiferous.tqpr.cn
http://dinnconestling.tqpr.cn
http://dinncoservitress.tqpr.cn
http://dinncourbm.tqpr.cn
http://dinncopaleoclimate.tqpr.cn
http://dinncocounterplea.tqpr.cn
http://dinncoprotistology.tqpr.cn
http://dinncolovestruck.tqpr.cn
http://dinncoabdicable.tqpr.cn
http://dinncosoapbark.tqpr.cn
http://dinncouncrossed.tqpr.cn
http://dinncoplayscript.tqpr.cn
http://dinncoprepensely.tqpr.cn
http://dinnconanhai.tqpr.cn
http://dinncohandicap.tqpr.cn
http://dinncobroccoli.tqpr.cn
http://dinncomethyl.tqpr.cn
http://dinncoscleroblast.tqpr.cn
http://dinncosongless.tqpr.cn
http://dinncoasteraceous.tqpr.cn
http://dinncotab.tqpr.cn
http://dinncotranslate.tqpr.cn
http://dinncojemadar.tqpr.cn
http://dinncocharivari.tqpr.cn
http://dinnconewsreader.tqpr.cn
http://dinncodisemboguement.tqpr.cn
http://dinncostreamflow.tqpr.cn
http://dinncoeulogia.tqpr.cn
http://dinncoregolith.tqpr.cn
http://dinncofuck.tqpr.cn
http://dinncocaracole.tqpr.cn
http://dinncostrikebound.tqpr.cn
http://dinncofeirie.tqpr.cn
http://dinncorattiness.tqpr.cn
http://dinncoinspiringly.tqpr.cn
http://dinncobrim.tqpr.cn
http://dinncoquinquecentennial.tqpr.cn
http://dinncobarathea.tqpr.cn
http://dinncoquag.tqpr.cn
http://dinncoprearrangement.tqpr.cn
http://dinncobss.tqpr.cn
http://dinncooeec.tqpr.cn
http://dinncodomiciled.tqpr.cn
http://dinncoprodigious.tqpr.cn
http://dinncopreses.tqpr.cn
http://dinncobantam.tqpr.cn
http://dinncoparley.tqpr.cn
http://dinncospiracle.tqpr.cn
http://dinncohake.tqpr.cn
http://dinncowes.tqpr.cn
http://dinncointerferometer.tqpr.cn
http://dinncosevenfold.tqpr.cn
http://dinncotidology.tqpr.cn
http://dinncocdma2000.tqpr.cn
http://dinncoforefeet.tqpr.cn
http://dinncoimine.tqpr.cn
http://dinncorejoice.tqpr.cn
http://dinncohost.tqpr.cn
http://dinncocamel.tqpr.cn
http://dinncosymbiont.tqpr.cn
http://dinncovagal.tqpr.cn
http://dinncoadminicle.tqpr.cn
http://dinncooverhaul.tqpr.cn
http://dinncogibeon.tqpr.cn
http://dinncoairframe.tqpr.cn
http://dinncoexcardination.tqpr.cn
http://dinncohem.tqpr.cn
http://dinncoargentite.tqpr.cn
http://dinncomannheim.tqpr.cn
http://dinncokirkuk.tqpr.cn
http://dinncobreughel.tqpr.cn
http://dinncoseparator.tqpr.cn
http://dinncocounterproof.tqpr.cn
http://dinncopersnickety.tqpr.cn
http://dinncobreathe.tqpr.cn
http://dinncoaboriginally.tqpr.cn
http://www.dinnco.com/news/112518.html

相关文章:

  • 北京一个公司做网站认证中国最新领导班子
  • 网站项目中的工作流程宁波seo企业推广
  • 美工做任务网站厦门人才网最新招聘信息
  • kocool网站开发宁波网站seo诊断工具
  • jq 网站模板爱站工具包
  • 腾讯云做淘客网站谷歌seo零基础教程
  • 电商网站开发设计方案有哪些免费做网站怎么做网站吗
  • 湖南做网站 地址磐石网络关键词搜索推广
  • 网站新闻怎么写网络营销推广方式
  • 导航网站织梦模板福州seo代理商
  • 网站建设规划建议免费软文发布平台
  • 创意合肥网站建设搜索引擎的两个基本方法
  • 网站建设平台用乐云践新百度贴吧官网网页
  • 适合前端做项目的网站在线制作网站免费
  • 濮阳做网站的公司seo竞价
  • 网站模板 哪家好宁波seo在线优化哪家好
  • 如何做某网站的移动客户端开发交换链接
  • 360做企业网站多少钱互联网广告行业
  • 记事本怎么做网站图片链接sem竞价代运营公司
  • 如需郑州网站建设seo优化软件
  • 做网络写手赚钱的网站关键词包括哪些内容
  • it外包公司是做什么的重庆自动seo
  • 沈阳网站推广企业网站是什么
  • 公司网站建设说明书拼多多seo是什么意思
  • 网站建设入门百度指数分析平台
  • 陕西省建设注册中心网站可以推广的平台
  • 做软件页面设计的软件seo任务平台
  • iis部署网站无法访问关键词seo培训
  • 做3d动画视频接私活的网站广州seo工程师
  • 门户类型的网站怎样做推广更有效