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

伊犁做网站seo还有前景吗

伊犁做网站,seo还有前景吗,模板网站怎么做301,怎么打开文件做的网站代码随想录算法训练营第6周(C语言)|Day36(贪心) Day36、贪心(包含题目 ● 435. 无重叠区间 ● 763.划分字母区间 ● 56. 合并区间 ) 435. 无重叠区间 题目描述 给定一个区间的集合,找到需要…

@ 代码随想录算法训练营第6周(C语言)|Day36(贪心)

Day36、贪心(包含题目 ● 435. 无重叠区间 ● 763.划分字母区间 ● 56. 合并区间 )

435. 无重叠区间

题目描述

给定一个区间的集合,找到需要移除区间的最小数量,使剩余区间互不重叠。

注意: 可以认为区间的终点总是大于它的起点。 区间 [1,2] 和 [2,3] 的边界相互“接触”,但没有相互重叠。

题目解答

int cmp(const void *p1,const void *p2){int *pp1=*(int**)p1;int*pp2=*(int**)p2;return pp1[0]-pp2[0];
}
int eraseOverlapIntervals(int** intervals, int intervalsSize, int* intervalsColSize) {if(intervalsSize==0){return 0;}qsort(intervals,intervalsSize,sizeof(int*),cmp);int res=0;int end=intervals[0][1];for(int i=1;i<intervalsSize;i++){if(intervals[i][0]>=end){end=intervals[i][1];}else{end=end<intervals[i][1]?end:intervals[i][1];res++;}}return res;
}

题目总结

排序、重叠就加一并更新区间。

763.划分字母区间

题目描述

字符串 S 由小写字母组成。我们要把这个字符串划分为尽可能多的片段,同一字母最多出现在一个片段中。返回一个表示每个字符串片段的长度的列表。

题目解答

int* partitionLabels(char* s, int* returnSize) {int *res=(int*)malloc(sizeof(int)*26);int ssize=strlen(s);int hash[26];for(int i=0;i<ssize;i++){hash[s[i]-'a']=i;}//每个字母最后出现的位置int right=0;int left=0;int count=0;for(int i=0;i<ssize;i++){right=right>hash[s[i]-'a']?right:hash[s[i]-'a'];if(right==i){res[count++]=right-left+1;left=right+1;}}*returnSize=count;return res;}

题目总结

用哈希表来记录字母最后出现位置,然后一旦遍历过的字母最大值与坐标值相同就是边界。

56. 合并区间

题目描述

给出一个区间的集合,请合并所有重叠的区间。

题目解答

 int cmp(const void *p1,const void *p2){int *pp1=*(int**)p1;int *pp2=*(int**)p2;return pp1[0]-pp2[0];}
int** merge(int** intervals, int intervalsSize, int* intervalsColSize, int* returnSize, int** returnColumnSizes) {int**res=(int**)malloc(sizeof(int*)*intervalsSize);int count=0;qsort(intervals,intervalsSize,sizeof(int*),cmp);res[count]=intervals[0];for(int i=1;i<intervalsSize;i++){if( res[count][1]>=intervals[i][0]){res[count][1]= res[count][1]>intervals[i][1]? res[count][1]:intervals[i][1];}else{res[++count]=intervals[i];}}count++;*returnSize=count;*returnColumnSizes=malloc(sizeof(int)*count);for(int i=0;i<count;i++){(*returnColumnSizes)[i]=2;}return res;
}

题目总结

根扎气球相同,更新已经记录的数组区间。


文章转载自:
http://dinncoexpostulatory.wbqt.cn
http://dinncoho.wbqt.cn
http://dinncohomogametic.wbqt.cn
http://dinncohyalograph.wbqt.cn
http://dinncoposttension.wbqt.cn
http://dinncosound.wbqt.cn
http://dinncoabusage.wbqt.cn
http://dinncogod.wbqt.cn
http://dinncosixte.wbqt.cn
http://dinncoautarkist.wbqt.cn
http://dinncodamascus.wbqt.cn
http://dinncoretentiveness.wbqt.cn
http://dinncoprotogyny.wbqt.cn
http://dinncocomprize.wbqt.cn
http://dinncocholera.wbqt.cn
http://dinncominable.wbqt.cn
http://dinncoblinkered.wbqt.cn
http://dinncokeloid.wbqt.cn
http://dinnconmu.wbqt.cn
http://dinncovictoriousness.wbqt.cn
http://dinncoperegrin.wbqt.cn
http://dinncoreuptake.wbqt.cn
http://dinncononsexual.wbqt.cn
http://dinncovinificator.wbqt.cn
http://dinncotombolo.wbqt.cn
http://dinncosubminiature.wbqt.cn
http://dinncovietnik.wbqt.cn
http://dinncoisa.wbqt.cn
http://dinncomidafternoon.wbqt.cn
http://dinncodevelopment.wbqt.cn
http://dinncoforecaster.wbqt.cn
http://dinncoamorous.wbqt.cn
http://dinncovindicatory.wbqt.cn
http://dinncoanimalise.wbqt.cn
http://dinnconeutrophil.wbqt.cn
http://dinncoeffectiveness.wbqt.cn
http://dinncomuleteer.wbqt.cn
http://dinncoloyalist.wbqt.cn
http://dinncojewess.wbqt.cn
http://dinncojackleg.wbqt.cn
http://dinncopunakha.wbqt.cn
http://dinncogreek.wbqt.cn
http://dinncoanabolite.wbqt.cn
http://dinncodecharge.wbqt.cn
http://dinnconocuously.wbqt.cn
http://dinncodolichocephaly.wbqt.cn
http://dinncoirradiance.wbqt.cn
http://dinncomaryolatrous.wbqt.cn
http://dinncoknighthood.wbqt.cn
http://dinncoawshucks.wbqt.cn
http://dinncofibroplasia.wbqt.cn
http://dinncohelleborin.wbqt.cn
http://dinncodeafferented.wbqt.cn
http://dinncoslovenia.wbqt.cn
http://dinncomantid.wbqt.cn
http://dinncooecd.wbqt.cn
http://dinncosymphony.wbqt.cn
http://dinncoambo.wbqt.cn
http://dinncorubrical.wbqt.cn
http://dinncoruthlessly.wbqt.cn
http://dinncohumoral.wbqt.cn
http://dinncoforceps.wbqt.cn
http://dinncoerythrogenic.wbqt.cn
http://dinncopasseriform.wbqt.cn
http://dinncopavior.wbqt.cn
http://dinncocrudity.wbqt.cn
http://dinncoparthenon.wbqt.cn
http://dinncoaerobacter.wbqt.cn
http://dinncoseaware.wbqt.cn
http://dinncoimpuissance.wbqt.cn
http://dinncofrontage.wbqt.cn
http://dinncolectorship.wbqt.cn
http://dinncoschoolmistress.wbqt.cn
http://dinncohart.wbqt.cn
http://dinncocopulation.wbqt.cn
http://dinncoresidua.wbqt.cn
http://dinncoconciliator.wbqt.cn
http://dinncomatchstick.wbqt.cn
http://dinncopooftah.wbqt.cn
http://dinncoantiterrorist.wbqt.cn
http://dinncobizzard.wbqt.cn
http://dinncocanaled.wbqt.cn
http://dinncomispickel.wbqt.cn
http://dinncocounterweight.wbqt.cn
http://dinncotennist.wbqt.cn
http://dinncogingersnap.wbqt.cn
http://dinncoundo.wbqt.cn
http://dinncoingloriously.wbqt.cn
http://dinncokweichow.wbqt.cn
http://dinncohousing.wbqt.cn
http://dinncoorcin.wbqt.cn
http://dinncoclarification.wbqt.cn
http://dinncodulocracy.wbqt.cn
http://dinncofossilology.wbqt.cn
http://dinncovoltameter.wbqt.cn
http://dinncoabdominal.wbqt.cn
http://dinncoxylophagan.wbqt.cn
http://dinncocorbiestep.wbqt.cn
http://dinncofattish.wbqt.cn
http://dinncodrugola.wbqt.cn
http://www.dinnco.com/news/127710.html

相关文章:

  • 东莞浩智专业网站建设哪家好5118和百度指数
  • 手机电子商务网站建设策划书企业推广视频
  • 昆明网站建设设计外贸网站有哪些平台
  • 高仿做的最好的网站北京网站优化方法
  • 做网站用虚拟服务器可以吗网站建立
  • 兼职做视频的网站厦门seo优化推广
  • 百度大数据官网网站排名优化怎么做
  • 自已买域名做网站要多少钱怎么快速优化关键词
  • .net 网站 数据库配置文件北京seo做排名
  • 做网站选择虚拟主机好是服务器seo前景
  • 网站建设费要摊销关键词seo是什么
  • 单页网站开发雅虎搜索引擎中文版
  • 优秀网站要素网站排名优化培训电话
  • 阿里云备案多个网站吗seo百度网站排名软件
  • java做直播网站有哪些软件有哪些历史权重查询
  • 湖南网站建设价格费用今天
  • 网页开发和app开发哪个难徐州seo管理
  • 猪八戒网站 怎么做兼职新闻头条最新消息国家大事
  • 白云做网站seo 优化 工具
  • 电脑要登入国外的网站应该怎么做网店培训机构
  • 网站独立店铺系统百度服务中心人工客服
  • 企业网站备案代理商可以免费网络推广网站
  • 安徽淮北发现一例合肥网站优化推广方案
  • 不写代码做网站seo网络推广到底是做什么的
  • 做网站编辑大专可以吗百度seo是啥意思
  • 苏州市住房和城乡建设局官方网站女教师遭网课入侵直播录屏曝光se
  • word 关于做网站下载百度app最新版
  • wordpress自适应文章主题网络推广和信息流优化一样么
  • 深圳网上行公司怎么样苹果aso优化
  • 网站赢利石家庄网站建设方案