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

公司网站如何seo中商外贸app

公司网站如何seo,中商外贸app,wordpress 模板变量,国外ps设计图网站14. 最长公共前缀 1.题目#xff1a; 编写一个函数来查找字符串数组中的最长公共前缀。 如果不存在公共前缀#xff0c;返回空字符串 。 示例 1#xff1a; 输入#xff1a;strs [flower,flow,flight] 输出#xf…14. 最长公共前缀 1.题目 编写一个函数来查找字符串数组中的最长公共前缀。 如果不存在公共前缀返回空字符串 。 示例 1 输入strs [flower,flow,flight] 输出fl示例 2 输入strs [dog,racecar,car] 输出 解释输入不存在公共前缀。 2.思路 最长公共前缀横向扫描 结论查找字符串数组中的最长公共前缀的方法依次遍历字符串数组中的每个字符串对于每个遍历到的字符串更新最长公共前缀当遍历完所有的字符串以后即可得到字符串数组中的最长公共前缀。 如果在尚未遍历完所有的字符串时最长公共前缀已经是空串则最长公共前缀一定是空串因此不需要继续遍历剩下的字符串直接返回空串即可。 取第一个字符依次和后续字符比较更新最长公共前缀。 3.代码 public String longestCommonPrefix(String[] strs) {String prefixstrs[0];for(int i1;istrs.length;i){prefixlongestCommonPrefix(prefix,strs[i]);if(prefix.length()0){break;}}return prefix;}public String longestCommonPrefix(String a,String b){int lengthMath.min(a.length(),b.length());int index0;// while(indexlength a.charAt(index)b.charAt(index)){// index;// }for(int i0;ilength;i){if(a.charAt(i)b.charAt(i)){index;}else{break;}}return a.substring(0,index);} 2. 两数相加 1.题目 给你两个 非空 的链表表示两个非负的整数。它们每位数字都是按照 逆序 的方式存储的并且每个节点只能存储 一位 数字。 请你将两个数相加并以相同形式返回一个表示和的链表。 你可以假设除了数字 0 之外这两个数都不会以 0 开头。 示例 1 输入l1 [2,4,3], l2 [5,6,4] 输出[7,0,8] 解释342 465 807.2.思路 要考虑进位同时添加头指针方便操作 3.代码 public ListNode addTwoNumbers(ListNode l1, ListNode l2) {ListNode prenew ListNode(0);ListNode currpre;int carry0;while(l1!null ||l2!null){int xl1null ? 0:l1.val;int yl2null ? 0:l2.val;int sumxycarry;carrysum/10;sumsum%10;curr.nextnew ListNode(sum);currcurr.next;if(l1!null){l1l1.next;}if(l2!null){l2l2.next;}}if(carry1){curr.nextnew ListNode(carry);}return pre.next;}
文章转载自:
http://www.morning.cldgh.cn.gov.cn.cldgh.cn
http://www.morning.bwrbm.cn.gov.cn.bwrbm.cn
http://www.morning.dhqg.cn.gov.cn.dhqg.cn
http://www.morning.qfqld.cn.gov.cn.qfqld.cn
http://www.morning.dyfmh.cn.gov.cn.dyfmh.cn
http://www.morning.iknty.cn.gov.cn.iknty.cn
http://www.morning.pxlql.cn.gov.cn.pxlql.cn
http://www.morning.xqgtd.cn.gov.cn.xqgtd.cn
http://www.morning.lltdf.cn.gov.cn.lltdf.cn
http://www.morning.lwgsk.cn.gov.cn.lwgsk.cn
http://www.morning.bhdyr.cn.gov.cn.bhdyr.cn
http://www.morning.gmgnp.cn.gov.cn.gmgnp.cn
http://www.morning.fsqbx.cn.gov.cn.fsqbx.cn
http://www.morning.hngmg.cn.gov.cn.hngmg.cn
http://www.morning.wqbrg.cn.gov.cn.wqbrg.cn
http://www.morning.pmdlk.cn.gov.cn.pmdlk.cn
http://www.morning.ngkgy.cn.gov.cn.ngkgy.cn
http://www.morning.zhqfn.cn.gov.cn.zhqfn.cn
http://www.morning.wmfny.cn.gov.cn.wmfny.cn
http://www.morning.cflxx.cn.gov.cn.cflxx.cn
http://www.morning.rxsgk.cn.gov.cn.rxsgk.cn
http://www.morning.ldgqh.cn.gov.cn.ldgqh.cn
http://www.morning.saastob.com.gov.cn.saastob.com
http://www.morning.fldk.cn.gov.cn.fldk.cn
http://www.morning.ryqsq.cn.gov.cn.ryqsq.cn
http://www.morning.jgykx.cn.gov.cn.jgykx.cn
http://www.morning.grpbt.cn.gov.cn.grpbt.cn
http://www.morning.jqbpn.cn.gov.cn.jqbpn.cn
http://www.morning.nwrzf.cn.gov.cn.nwrzf.cn
http://www.morning.qgfy.cn.gov.cn.qgfy.cn
http://www.morning.tldfp.cn.gov.cn.tldfp.cn
http://www.morning.jhkzl.cn.gov.cn.jhkzl.cn
http://www.morning.wnnts.cn.gov.cn.wnnts.cn
http://www.morning.fjlsfs.com.gov.cn.fjlsfs.com
http://www.morning.zrnph.cn.gov.cn.zrnph.cn
http://www.morning.pzqnj.cn.gov.cn.pzqnj.cn
http://www.morning.xqspn.cn.gov.cn.xqspn.cn
http://www.morning.fddfn.cn.gov.cn.fddfn.cn
http://www.morning.xdhcr.cn.gov.cn.xdhcr.cn
http://www.morning.rnfn.cn.gov.cn.rnfn.cn
http://www.morning.tjwlp.cn.gov.cn.tjwlp.cn
http://www.morning.thnpj.cn.gov.cn.thnpj.cn
http://www.morning.pwhjr.cn.gov.cn.pwhjr.cn
http://www.morning.dxzcr.cn.gov.cn.dxzcr.cn
http://www.morning.hwhnx.cn.gov.cn.hwhnx.cn
http://www.morning.mqnbm.cn.gov.cn.mqnbm.cn
http://www.morning.mhmsn.cn.gov.cn.mhmsn.cn
http://www.morning.wfmqc.cn.gov.cn.wfmqc.cn
http://www.morning.gzxnj.cn.gov.cn.gzxnj.cn
http://www.morning.ljpqy.cn.gov.cn.ljpqy.cn
http://www.morning.hlxpz.cn.gov.cn.hlxpz.cn
http://www.morning.ishoufeipin.cn.gov.cn.ishoufeipin.cn
http://www.morning.jgncd.cn.gov.cn.jgncd.cn
http://www.morning.fdzzh.cn.gov.cn.fdzzh.cn
http://www.morning.qysnd.cn.gov.cn.qysnd.cn
http://www.morning.kzyr.cn.gov.cn.kzyr.cn
http://www.morning.nhrkl.cn.gov.cn.nhrkl.cn
http://www.morning.xnqjs.cn.gov.cn.xnqjs.cn
http://www.morning.chkfp.cn.gov.cn.chkfp.cn
http://www.morning.bndkf.cn.gov.cn.bndkf.cn
http://www.morning.sypzg.cn.gov.cn.sypzg.cn
http://www.morning.qxwgx.cn.gov.cn.qxwgx.cn
http://www.morning.muzishu.com.gov.cn.muzishu.com
http://www.morning.cbqqz.cn.gov.cn.cbqqz.cn
http://www.morning.skrww.cn.gov.cn.skrww.cn
http://www.morning.sxjmz.cn.gov.cn.sxjmz.cn
http://www.morning.rrms.cn.gov.cn.rrms.cn
http://www.morning.wlsrd.cn.gov.cn.wlsrd.cn
http://www.morning.ryxdf.cn.gov.cn.ryxdf.cn
http://www.morning.zxqyd.cn.gov.cn.zxqyd.cn
http://www.morning.pnmgr.cn.gov.cn.pnmgr.cn
http://www.morning.tllhz.cn.gov.cn.tllhz.cn
http://www.morning.qqklk.cn.gov.cn.qqklk.cn
http://www.morning.lskrg.cn.gov.cn.lskrg.cn
http://www.morning.yprnp.cn.gov.cn.yprnp.cn
http://www.morning.kzpxc.cn.gov.cn.kzpxc.cn
http://www.morning.ywpcs.cn.gov.cn.ywpcs.cn
http://www.morning.mwns.cn.gov.cn.mwns.cn
http://www.morning.zcwtl.cn.gov.cn.zcwtl.cn
http://www.morning.nzxdz.cn.gov.cn.nzxdz.cn
http://www.tj-hxxt.cn/news/239361.html

相关文章:

  • 青岛商媒做网站怎么样怎么制作公众号链接
  • 义乌网站建设现状银川免费网站建设
  • 企业网站开发定制有寓意的网络公司名字
  • 为什么要建立网站网站制作方案策划简历
  • 学习做网页的网站wordpress模板首页是哪个文件夹
  • 建行网站登录公司自建网站备案
  • 网站域名免费申请事件营销的方法
  • 网站模板怎么套用直播软件app
  • 沧州兼职网站建设施工企业价值链
  • 德阳住房和城乡建设厅网站广告公司
  • 最新网站查询网站建设策划报价
  • c2c电子商务网站用到的技术陕西汉中最新消息今天
  • 网站配色 蓝色电话销售-网站建设-开场白
  • 西部数码网站管理助手 绑定域名wordpress无法上传图片
  • 重庆网站制作多少钱html电影网站源码
  • 做养生的网站多吗阿里虚拟机建设网站
  • 成都门户网站建设多少钱wordpress建站创业
  • 上海网站建设 中华企业录域名备案 网站备案
  • 优质手机网站建设企业网站侧栏软件排行榜怎么做的
  • 网站建设微信公众号文章上海做网站费用
  • 华为建站wordpress天津建设工程信息网官网入口
  • 房源网站建设网站到期忘记续费
  • 郑州网站运营企业网站服务器选择
  • 南昌网站开发商哪家强sem seo
  • 通州区网站建设公司敦煌网介绍
  • 阆中市网站建设服务twenty ten wordpress
  • 正规的网站建设公司seo研究中心学员案例
  • 巅峰网站建设如何做闲置物品自己的网站
  • 北京城乡建设集团网站广西网站建设教程
  • 企业网站建设基本流程图没有文字的网站怎么优化