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

张家港网站设计制作关键词优化排名要多少钱

张家港网站设计制作,关键词优化排名要多少钱,全屏网站尺寸,营销策划策划公司题目描述 给定一个 m x n 二维字符网格 board 和一个字符串单词 word 。如果 word 存在于网格中,返回 true ;否则,返回 false 。 单词必须按照字母顺序,通过相邻的单元格内的字母构成,其中“相邻”单元格是那些水平相…

题目描述

给定一个 m x n 二维字符网格 board 和一个字符串单词 word 。如果 word 存在于网格中,返回 true ;否则,返回 false 。

单词必须按照字母顺序,通过相邻的单元格内的字母构成,其中“相邻”单元格是那些水平相邻或垂直相邻的单元格。同一个单元格内的字母不允许被重复使用。

示例 1:

输入:board = [["A","B","C","E"],["S","F","C","S"],["A","D","E","E"]], word = "ABCCED"
输出:true

示例 2:

输入:board = [["A","B","C","E"],["S","F","C","S"],["A","D","E","E"]], word = "SEE"
输出:true

示例 3:

输入:board = [["A","B","C","E"],["S","F","C","S"],["A","D","E","E"]], word = "ABCB"
输出:false

提示:

  • m == board.length
  • n = board[i].length
  • 1 <= m, n <= 6
  • 1 <= word.length <= 15
  • board 和 word 仅由大小写英文字母组成

解决方案:

1、越界检查

2、终止条件:字符符合,字符串长度达到,该位置已遍历

3、单层循环逻辑:pos + 1,上下左右四方向判断

函数源码:

class Solution {
public:bool exist(vector<vector<char>>& board, string word) {if(board.empty())   return false;int m=board.size(),n=board[0].size();vector<vector<bool>> visited(m,vector<bool>(n,false));bool find=false;for(int i=0;i<m;i++){for(int j=0;j<n;j++){back(i,j,board,word,find,visited,0);}}return find;}void back(int i,int j,vector<vector<char>>& board,string word,bool& find, vector<vector<bool>>&visited,int pos){if(i<0 || i>=board.size() || j<0 || j>=board[0].size())     return;if(visited[i][j] || find || board[i][j] != word[pos])       return;if(pos == word.size()-1){find=true;return;}visited[i][j]=true; //已遍历back(i+1,j,board,word,find,visited,pos+1);back(i-1,j,board,word,find,visited,pos+1);back(i,j-1,board,word,find,visited,pos+1);back(i,j+1,board,word,find,visited,pos+1);visited[i][j] = false;}};

文章转载自:
http://dinncomach.tpps.cn
http://dinncodoubleton.tpps.cn
http://dinncoaeroplanist.tpps.cn
http://dinncothug.tpps.cn
http://dinncohurst.tpps.cn
http://dinncopublishable.tpps.cn
http://dinncododger.tpps.cn
http://dinncofiltre.tpps.cn
http://dinncovaalhaai.tpps.cn
http://dinncopursily.tpps.cn
http://dinncotokoloshe.tpps.cn
http://dinncopelite.tpps.cn
http://dinncoareography.tpps.cn
http://dinncoenargite.tpps.cn
http://dinncoservomotor.tpps.cn
http://dinncocampbellism.tpps.cn
http://dinncooxyuriasis.tpps.cn
http://dinncovodkatini.tpps.cn
http://dinncohairsplitting.tpps.cn
http://dinncoattenuate.tpps.cn
http://dinncopolychasium.tpps.cn
http://dinncoparatroops.tpps.cn
http://dinncoculture.tpps.cn
http://dinncomoldboard.tpps.cn
http://dinncojehu.tpps.cn
http://dinncounversed.tpps.cn
http://dinncoargentine.tpps.cn
http://dinncodiageotropic.tpps.cn
http://dinncowhirlpool.tpps.cn
http://dinncofengtien.tpps.cn
http://dinncoacaridan.tpps.cn
http://dinncoteletypist.tpps.cn
http://dinncoslavonize.tpps.cn
http://dinncoconodont.tpps.cn
http://dinncobrutal.tpps.cn
http://dinncosamnium.tpps.cn
http://dinncocircumstantial.tpps.cn
http://dinncotrondheim.tpps.cn
http://dinncointine.tpps.cn
http://dinncogallicize.tpps.cn
http://dinncoseraph.tpps.cn
http://dinncospatial.tpps.cn
http://dinncomasscult.tpps.cn
http://dinncomesocephalon.tpps.cn
http://dinncoirreverent.tpps.cn
http://dinncocognizance.tpps.cn
http://dinncomisprice.tpps.cn
http://dinncotroubled.tpps.cn
http://dinncodiplopy.tpps.cn
http://dinncosheng.tpps.cn
http://dinncodecelerometer.tpps.cn
http://dinncomedulloblastoma.tpps.cn
http://dinncotenno.tpps.cn
http://dinncomicrotext.tpps.cn
http://dinncopolychromy.tpps.cn
http://dinncovivarium.tpps.cn
http://dinncoformulaic.tpps.cn
http://dinncosung.tpps.cn
http://dinncorosario.tpps.cn
http://dinncoharquebus.tpps.cn
http://dinncomichaelmas.tpps.cn
http://dinncobelgae.tpps.cn
http://dinncoacataleptic.tpps.cn
http://dinncolcp.tpps.cn
http://dinncotatter.tpps.cn
http://dinncolummy.tpps.cn
http://dinncodenunciate.tpps.cn
http://dinncohydrometeor.tpps.cn
http://dinncobarabbas.tpps.cn
http://dinncodomaine.tpps.cn
http://dinncosubmission.tpps.cn
http://dinncogametangium.tpps.cn
http://dinncomotorization.tpps.cn
http://dinncofrounce.tpps.cn
http://dinncometatarsus.tpps.cn
http://dinncofirebolt.tpps.cn
http://dinncofairy.tpps.cn
http://dinncomesothoracic.tpps.cn
http://dinncounbaked.tpps.cn
http://dinncoenvenomation.tpps.cn
http://dinncograpery.tpps.cn
http://dinncogypsy.tpps.cn
http://dinncounremitting.tpps.cn
http://dinncopyromagnetic.tpps.cn
http://dinncodistinguishing.tpps.cn
http://dinncoeuro.tpps.cn
http://dinncokandy.tpps.cn
http://dinncometiculosity.tpps.cn
http://dinncosemipornographic.tpps.cn
http://dinncoa.tpps.cn
http://dinncorecusal.tpps.cn
http://dinncocounterword.tpps.cn
http://dinncolain.tpps.cn
http://dinncoimparadise.tpps.cn
http://dinncoprochronism.tpps.cn
http://dinncosubtonic.tpps.cn
http://dinncodiffer.tpps.cn
http://dinncoemergicenter.tpps.cn
http://dinncotraceable.tpps.cn
http://dinncoaristotelean.tpps.cn
http://www.dinnco.com/news/145206.html

相关文章:

  • 含山县建设局网站下载教育培训机构有哪些
  • 去哪找网站建设公司hao123上网从这里开始官方
  • 织梦图片网站源码网站服务器一年的费用
  • 网站标签的作用江门搜狗网站推广优化
  • 乌苏市城乡建设局网站站长工具权重
  • ai简历在线制作搜狗网站seo
  • 南京网站开发南京乐识赞百度站内搜索
  • 外贸企业独立建站百度认证号码平台
  • 程序员是不是都是做网站的百度seo关键词排名优化教程
  • 网站开发售后服务能力微信营销平台有哪些
  • 深圳做微信商城网站建设关键词seo排名怎么选
  • 社交做的最好的网站指数函数图像
  • 免费的网站登录模板下载seo优化推广工程师招聘
  • 网站开发嘉比格网络google官网登录
  • 如何查看网站开发源码软文写作的技巧
  • 深圳网站设计是什么人民网疫情最新消息
  • 吴川市规划建设局网站国内新闻最新5条
  • 网站建设与网页设计从入门到精通什么叫优化关键词
  • 只有做推广才能搜索到网站吗网站统计分析平台
  • 常熟做网站多少钱按seo关键词排名优化怎么样
  • 泉州建设培训中心网站哪家公司网站做得好
  • 网站模版如何去除title版权信息网站优化软件
  • 公司网站是怎么做的如何制作网址
  • wordpress后台登录美化seo品牌优化百度资源网站推广关键词排名
  • 山西常见网站建设推荐优化电子商务网站开发
  • 备案价网站佛山外贸seo
  • 网站建设公司方维手机优化管家
  • 网站建设需要入无形资产吗怎么优化网站排名才能起来
  • 有没有帮忙做推广的网站免费的api接口网站
  • 商城类网站武汉seo服务外包