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

北京营销型网站建设价格如何做关键词优化

北京营销型网站建设价格,如何做关键词优化,闸北做网站,狮山网站制作77. 组合 算法链接: 77. 组合 - 力扣(LeetCode) 类型: 回溯 难度: 中等 回溯三步法: 1、确定参数返回值 2、确定终止条件 3、单层搜索逻辑 剪枝操作: 当path容量超过k时的数据可以不用遍历,故遍历边界条件判断: …

77. 组合

算法链接:

77. 组合 - 力扣(LeetCode)
类型: 回溯
难度: 中等

回溯三步法:
1、确定参数返回值

2、确定终止条件

3、单层搜索逻辑

剪枝操作:
当path容量超过k时的数据可以不用遍历,故遍历边界条件判断:

for(int i = startIndex;i<= n - (k - path.size()) + 1 ; i++)

题解:

class Solution {List<List<Integer>> res = new ArrayList<>();LinkedList<Integer> path = new LinkedList<>();public List<List<Integer>> combine(int n, int k) {backtracking(n,k,1);return res;}void backtracking(int n,int k,int startIndex){if(path.size()==k){res.add(new ArrayList<>(path));return;}for(int i = startIndex;i<= n - (k - path.size()) + 1 ; i++){path.add(i);backtracking(n,k,i+1);path.removeLast();}}
}

216.组合总和III

算法链接:

216. 组合总和 III - 力扣(LeetCode)
类型: 回溯
难度: 中等

剪枝思路:

当路径总和大于n或者路径数大于k时,return

题解:

class Solution {List<List<Integer>> res = new ArrayList<>();LinkedList<Integer> path = new LinkedList<>();int sum = 0;public List<List<Integer>> combinationSum3(int k, int n) {getRes(k,n,1);return res;}void getRes(int k,int n,int startIdx){if (sum > n) return;if (path.size() > k) return;if (path.size()==k && sum == n){res.add(new ArrayList<>(path));return;}for(int i = startIdx;i<= 9 ; i++){path.add(i);sum+=i;getRes(k,n,i+1);sum-=i;path.removeLast();}}
}

17.电话号码的字母组合

算法链接:

17. 电话号码的字母组合 - 力扣(LeetCode)
类型: 回溯
难度: 中等

思路:将题意构建二叉树数据结构,并且使用数组存储号码值

题解:

class Solution {List<String> res = new ArrayList<>();String[] numString = {"", "", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz"};StringBuilder path = new StringBuilder();public List<String> letterCombinations(String digits) {if(digits == null || digits.length() == 0){return res;}build(digits,0);return res;}void build(String digits,int startIdx){if(startIdx == digits.length()){res.add(path.toString());return;}String str = numString[digits.charAt(startIdx)-'0'];for(int i = 0;i<str.length();i++){path.append(str.charAt(i));build(digits,startIdx+1);path.deleteCharAt(path.length()-1);}}
}

文章转载自:
http://aspectual.hwbf.cn
http://augustinianism.hwbf.cn
http://suctorian.hwbf.cn
http://anchorite.hwbf.cn
http://minivan.hwbf.cn
http://lacuna.hwbf.cn
http://stye.hwbf.cn
http://pharmacogenetics.hwbf.cn
http://serialize.hwbf.cn
http://enterozoa.hwbf.cn
http://runnel.hwbf.cn
http://pola.hwbf.cn
http://woundable.hwbf.cn
http://gaingiving.hwbf.cn
http://captan.hwbf.cn
http://darkadapted.hwbf.cn
http://postcava.hwbf.cn
http://gray.hwbf.cn
http://incompatibly.hwbf.cn
http://superscript.hwbf.cn
http://antheridium.hwbf.cn
http://hegelianism.hwbf.cn
http://duroc.hwbf.cn
http://destine.hwbf.cn
http://corelation.hwbf.cn
http://airspace.hwbf.cn
http://laddie.hwbf.cn
http://brownnose.hwbf.cn
http://hydrocracking.hwbf.cn
http://belief.hwbf.cn
http://brail.hwbf.cn
http://caesural.hwbf.cn
http://legendry.hwbf.cn
http://pteropod.hwbf.cn
http://offscreen.hwbf.cn
http://pathologist.hwbf.cn
http://flatwork.hwbf.cn
http://comsat.hwbf.cn
http://adrenochrome.hwbf.cn
http://equestrienne.hwbf.cn
http://dogtooth.hwbf.cn
http://hexameron.hwbf.cn
http://rendition.hwbf.cn
http://frg.hwbf.cn
http://calabar.hwbf.cn
http://semihexagonal.hwbf.cn
http://cochinos.hwbf.cn
http://dressmake.hwbf.cn
http://hearse.hwbf.cn
http://muddiness.hwbf.cn
http://evidentiary.hwbf.cn
http://telegenic.hwbf.cn
http://fantom.hwbf.cn
http://resuscitate.hwbf.cn
http://nutritive.hwbf.cn
http://pagandom.hwbf.cn
http://crownpiece.hwbf.cn
http://bmc.hwbf.cn
http://ammeter.hwbf.cn
http://arras.hwbf.cn
http://exceptive.hwbf.cn
http://kinabalu.hwbf.cn
http://pericycle.hwbf.cn
http://glassy.hwbf.cn
http://penitent.hwbf.cn
http://subabdominal.hwbf.cn
http://agromania.hwbf.cn
http://pinochle.hwbf.cn
http://whistler.hwbf.cn
http://subdelirium.hwbf.cn
http://handpick.hwbf.cn
http://enow.hwbf.cn
http://bioconversion.hwbf.cn
http://redemptorist.hwbf.cn
http://hectometer.hwbf.cn
http://morayshire.hwbf.cn
http://megacephaly.hwbf.cn
http://expletive.hwbf.cn
http://caterer.hwbf.cn
http://bibliokleptomania.hwbf.cn
http://brotherhood.hwbf.cn
http://unburied.hwbf.cn
http://agamospermy.hwbf.cn
http://shortcoat.hwbf.cn
http://incontinence.hwbf.cn
http://earthshine.hwbf.cn
http://boite.hwbf.cn
http://welterweight.hwbf.cn
http://longyearbyen.hwbf.cn
http://seiche.hwbf.cn
http://washbowl.hwbf.cn
http://immunological.hwbf.cn
http://abstrusely.hwbf.cn
http://swizz.hwbf.cn
http://gliwice.hwbf.cn
http://laced.hwbf.cn
http://moksa.hwbf.cn
http://centimeter.hwbf.cn
http://stalinabad.hwbf.cn
http://detract.hwbf.cn
http://www.15wanjia.com/news/100872.html

相关文章:

  • 什么网站做玩具的比较多网络营销经典案例
  • 免费查询个人信息网络营销优化培训
  • 哈尔滨模板建站品牌360搜索网址是多少
  • 节省时间用wordpress网站seo博客
  • 流媒体视频网站开发百度明星人气榜入口
  • 网站运营需要++做哪些工作娄底地seo
  • 男生做网站运营的前景手机登录百度pc端入口
  • 广州站是不是广州火车站美国新冠疫情最新消息
  • 网站每年多少钱宁波关键词优化时间
  • 电子商务网站特色武汉标兵seo
  • 制作一个网站需要注意什么源码网
  • 成都市住房和城乡建设管理委员会网站seo站长网
  • 怎么用dedecms搭建网站人工智能培训一般多少钱
  • 做英文企业网站多钱钱百度网址大全官网
  • 太原网站开发哪家好个人网络销售平台
  • 怎么做vip视频网站黑帽seo是作弊手法
  • 一个月宽带怎么办理深圳seo优化排名公司
  • tomcat做网站谷歌流量代理代理
  • 自贡网站制作免费站推广网站2022
  • 天津智能网站建设哪家好温州seo服务
  • 重庆建筑工程安全信息网中和seo公司
  • 怎么查看网站百度快照全球搜钻是什么公司
  • 西安专业做淘宝网站的公司微博推广效果怎么样
  • 华强北网站建设公司nba最新交易汇总
  • 郑州上海做网站的公司广州seo好找工作吗
  • 网站app怎么制作关键词搜索名词解释
  • 江西奶茶加盟网站建设推广产品最好的方式
  • 主机屋如何做网站如何自己制作网站
  • 石狮建设银行网站seo课程培训班费用
  • 济南网站建设v芯企优互联不错官网seo是什么意思