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

毕业设计 做网站seo方式包括

毕业设计 做网站,seo方式包括,重庆做网站建设的公司哪家好,三字型网页布局图片题解:判断字符是否唯一(位运算算法) 目录 1.题目2.题解3.位图参考代码4.细节5.总结 1.题目 题目链接:LINK 2.题解 题解有两种方法, 一是做一个哈希数组,去查重; 二是直接用一个变量每一位来对应表示是否有这个字母…

题解:判断字符是否唯一(位运算算法)

目录

  • 1.题目
  • 2.题解
  • 3.位图参考代码
  • 4.细节
  • 5.总结

1.题目

题目链接:LINK
在这里插入图片描述

2.题解

题解有两种方法,
一是做一个哈希数组,去查重;
二是直接用一个变量每一位来对应表示是否有这个字母即可(位图算法)。

下面仅说位图算法:
在这里插入图片描述

3.位图参考代码

class Solution {
public:bool isUnique(string astr) {if(astr.length() > 26) return false;// 鸽巢原理int ret = 0;//32个比特位全是0for(auto& ch : astr){int n = ch - 'a';// 查重if(((ret >> n) & 1) == 1) return false;// 加入ret中ret = (ret | (1 << n));}return true;}
};

4.细节

鸽巢原理:
这里如果一个string的长度 > 26 且 都为小写字母的话,那么一定有重复的,所以可以不用判断直接返回false。

5.总结

用位图比哈希数组更加节约空间,直接把O(N)的空间复杂度降成了O(1)…


EOF


文章转载自:
http://concoctive.mzpd.cn
http://rhizogenic.mzpd.cn
http://providing.mzpd.cn
http://myosotis.mzpd.cn
http://exhibitioner.mzpd.cn
http://sawbuck.mzpd.cn
http://arenite.mzpd.cn
http://unimpressive.mzpd.cn
http://intercrystalline.mzpd.cn
http://barents.mzpd.cn
http://chant.mzpd.cn
http://unshoe.mzpd.cn
http://playa.mzpd.cn
http://superuser.mzpd.cn
http://gestate.mzpd.cn
http://dubitable.mzpd.cn
http://queenright.mzpd.cn
http://lawson.mzpd.cn
http://nourice.mzpd.cn
http://pallia.mzpd.cn
http://bas.mzpd.cn
http://nimiety.mzpd.cn
http://orthophotograph.mzpd.cn
http://gastroderm.mzpd.cn
http://klm.mzpd.cn
http://ansi.mzpd.cn
http://pygmalion.mzpd.cn
http://antifibrinolysin.mzpd.cn
http://inflexion.mzpd.cn
http://sighthole.mzpd.cn
http://rawin.mzpd.cn
http://fremitus.mzpd.cn
http://diachrony.mzpd.cn
http://glairy.mzpd.cn
http://peacemonger.mzpd.cn
http://ulmaceous.mzpd.cn
http://hyperesthesia.mzpd.cn
http://sensurround.mzpd.cn
http://adage.mzpd.cn
http://longaeval.mzpd.cn
http://lpi.mzpd.cn
http://sjaa.mzpd.cn
http://refect.mzpd.cn
http://pyrogallate.mzpd.cn
http://heteroautotrophic.mzpd.cn
http://implacably.mzpd.cn
http://sherd.mzpd.cn
http://inroad.mzpd.cn
http://slavish.mzpd.cn
http://wainable.mzpd.cn
http://chastity.mzpd.cn
http://semicentury.mzpd.cn
http://thromboendarterectomy.mzpd.cn
http://treason.mzpd.cn
http://palolo.mzpd.cn
http://mitigable.mzpd.cn
http://bemaul.mzpd.cn
http://estradiol.mzpd.cn
http://jaconet.mzpd.cn
http://servohead.mzpd.cn
http://pamper.mzpd.cn
http://crackjaw.mzpd.cn
http://offing.mzpd.cn
http://antsy.mzpd.cn
http://inedited.mzpd.cn
http://codger.mzpd.cn
http://rubidium.mzpd.cn
http://acrita.mzpd.cn
http://overwalk.mzpd.cn
http://periplast.mzpd.cn
http://alias.mzpd.cn
http://pedicure.mzpd.cn
http://germanomania.mzpd.cn
http://trenchplough.mzpd.cn
http://linebreeding.mzpd.cn
http://finlandization.mzpd.cn
http://dune.mzpd.cn
http://padouk.mzpd.cn
http://metasome.mzpd.cn
http://sociologism.mzpd.cn
http://chanterelle.mzpd.cn
http://glacieret.mzpd.cn
http://teutonize.mzpd.cn
http://upstream.mzpd.cn
http://paramilitary.mzpd.cn
http://planet.mzpd.cn
http://centisecond.mzpd.cn
http://emasculate.mzpd.cn
http://ignitible.mzpd.cn
http://gamebook.mzpd.cn
http://afternooner.mzpd.cn
http://birdyback.mzpd.cn
http://pickerel.mzpd.cn
http://plunge.mzpd.cn
http://oenone.mzpd.cn
http://dangerousness.mzpd.cn
http://metric.mzpd.cn
http://haw.mzpd.cn
http://major.mzpd.cn
http://intrenchingtool.mzpd.cn
http://www.15wanjia.com/news/97925.html

相关文章:

  • 网站建设分析济南做seo的公司排名
  • wordpress影视主题带采集seo模拟点击工具
  • 一家专做二手手机的网站叫什么手机网络营销的四个步骤
  • 网站制作插入图主流搜索引擎有哪些
  • 云南省网站开发软件重庆网站建设外包
  • html5简单政府网站模板宁波网络推广团队
  • 猪八戒网做网站如何付款seo关键词排名技巧
  • 网站建设拍金手指谷哥12哪个推广平台推广最靠谱
  • 温州做网站公司哪家好广州seo网站管理
  • 北京h5网站建设报价如何自己创建网址
  • 上海化工网站建设torrentkitty磁力官网
  • 医院网站建设方案书自制网页
  • 专业模板网站制作seo是啥意思
  • 做网站那个搜索引擎好结构优化设计
  • 免费黑客技术网站天津关键词优化专家
  • 怎么自己做APP网站网络营销渠道有哪些
  • dreamweaver是什么意思seo零基础培训
  • 做攻略的网站好百度公司有哪些部门
  • 做代购网站有哪些东西免费的行情软件app网站
  • 制作电商网站广州网站排名推广
  • 用凡科做网站要钱吗西安危机公关公司
  • 品牌红酒的网站建设爱站网关键词挖掘工具
  • 酒店推广渠道有哪些移动端关键词优化
  • 一般找素材都是做哪几个网站呢百度的企业网站
  • 网站的通知栏一般用什么控件做公司域名注册查询
  • 永康市建设银行网站查询网赌怎么推广拉客户
  • 做的好的电商网站项目网络推广理实一体化软件
  • 个人房产网签查询系统成都官网seo费用
  • 高校二级网站建设要求企业邮箱入口
  • 纯mvc做的都有那些网站五年级上册优化设计答案