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

企业网站的制作原则温州seo推广外包

企业网站的制作原则,温州seo推广外包,做网站一般用什么软件,四川网站建设益友目录 1 知识点2 模板 1 知识点 栈:先进后出。先进的就是栈底,后进的就是栈顶。后进先出嘛,所以在栈顶弹出元素。 队列:先进先出。先进的就是队头,后进的就是队尾。先进先出嘛,所以在队头弹出元素。 单调…

目录

  • 1 知识点
  • 2 模板

1 知识点

栈:先进后出。先进的就是栈底,后进的就是栈顶。后进先出嘛,所以在栈顶弹出元素。

队列:先进先出。先进的就是队头,后进的就是队尾。先进先出嘛,所以在队头弹出元素。

单调栈:输入数组,求每个元素左边的某个元素,满足(1)比它小,(2)离它最近。

//输入数组nums
//输出上述要求的数值
for (int i = 0; i < nums.size(); ++i) {while (tt && stk[tt] >= nums[i]) {tt--;}if (tt) {cout << stk[tt] << " ";} else {cout << "-1 ";}stk[++tt] = nums[i];
}
cout << endl;

单调队列:求滑动窗口中的最大值或最小值,

//输入数组nums,区间长度k
//(1)找到滑动窗口的最小值
int hh = 0, tt = -1;
for (int i = 0; i < nums.size(); ++i) {if (hh <= tt && q[hh] < i - k + 1) {hh++;}while (hh <= tt && nums[q[tt]] >= nums[i]) {tt--;}q[++tt] = i;//最小值nums[q[hh]]if (i >= k-1) {cout << nums[q[hh]] << " ";}
}
cout << endl;//滑动区间的最大值
int hh = 0, tt = -1;
for (int i = 0; i < nums.size(); ++i) {if (hh <= tt && q[hh] < i - k + 1) {hh++;}while (hh <= tt && nums[q[tt]] <= nums[i]) {tt--;}q[++tt] = i;//最大值nums[q[hh]]if (i >= k - 1) {cout << nums[q[hh]] << " ";}
}
cout << endl;

用数组来模拟上述数据结构。

2 模板

(一)用数组来模拟栈的模板,

const int N = 1e6 + 10;
int stk[N], tt = 0;//tt表示栈顶下标,stk[tt]表示栈顶的值。//(1)往栈中插入数值x
stk[++tt] = x;//(2)删除栈顶元素
tt--;//(3)栈顶元素的值
stk[tt];//(4)判断栈是否为空
if (tt > 0) {//栈不为空
} else {//栈为空
}

(二)用数组来模拟队列的模板,

const int N = 1e6 + 10;
int q[N], hh = 0, tt = -1;//hh表示队头下标,tt表示队尾下标。q[hh]表示队头的值,q[tt]表示队尾的值。//(1)往队列中插入数值x
q[++tt] = x;//(2)往队列中删除元素
hh++;//(3)取队头元素
q[hh];//(4)取队尾元素
q[tt];//(5)判断队列是否为空
if (hh <= tt) {//队列不为空
} else {//队列为空
}

文章转载自:
http://dinncopelite.ssfq.cn
http://dinncointercommunal.ssfq.cn
http://dinncovibratile.ssfq.cn
http://dinncosneezy.ssfq.cn
http://dinncofloodwall.ssfq.cn
http://dinncocinnamonic.ssfq.cn
http://dinncochloette.ssfq.cn
http://dinncoprevision.ssfq.cn
http://dinncounderutilize.ssfq.cn
http://dinncogael.ssfq.cn
http://dinncoblubber.ssfq.cn
http://dinncosemiarc.ssfq.cn
http://dinncoqualified.ssfq.cn
http://dinncocinque.ssfq.cn
http://dinncovalgus.ssfq.cn
http://dinncoanime.ssfq.cn
http://dinncohydrostat.ssfq.cn
http://dinncosavor.ssfq.cn
http://dinncospecious.ssfq.cn
http://dinncourl.ssfq.cn
http://dinncooverexcite.ssfq.cn
http://dinncotenty.ssfq.cn
http://dinncodotted.ssfq.cn
http://dinncocrewless.ssfq.cn
http://dinncoforfeitable.ssfq.cn
http://dinncoquirt.ssfq.cn
http://dinncosonar.ssfq.cn
http://dinncoenterozoa.ssfq.cn
http://dinncomyoid.ssfq.cn
http://dinncopectinate.ssfq.cn
http://dinncosubventionize.ssfq.cn
http://dinncoaardwolf.ssfq.cn
http://dinncolunchtime.ssfq.cn
http://dinncopintail.ssfq.cn
http://dinncoumwelt.ssfq.cn
http://dinncoiminourea.ssfq.cn
http://dinncoegression.ssfq.cn
http://dinncocirrhotic.ssfq.cn
http://dinncocommunicatory.ssfq.cn
http://dinncogoldarned.ssfq.cn
http://dinncogalloway.ssfq.cn
http://dinncotailwagging.ssfq.cn
http://dinncowaveringly.ssfq.cn
http://dinncobackcourtman.ssfq.cn
http://dinncoadoptable.ssfq.cn
http://dinncoenclosure.ssfq.cn
http://dinncohandtector.ssfq.cn
http://dinncoihs.ssfq.cn
http://dinncobrae.ssfq.cn
http://dinncoshikotan.ssfq.cn
http://dinncodisputability.ssfq.cn
http://dinncoinattentively.ssfq.cn
http://dinncognathion.ssfq.cn
http://dinncohrip.ssfq.cn
http://dinncoprepossession.ssfq.cn
http://dinncohomeoplastic.ssfq.cn
http://dinncoinharmonic.ssfq.cn
http://dinncoapocryphal.ssfq.cn
http://dinncoredirection.ssfq.cn
http://dinncopickerelweed.ssfq.cn
http://dinncoconversancy.ssfq.cn
http://dinncostaffordshire.ssfq.cn
http://dinncomci.ssfq.cn
http://dinncolaverock.ssfq.cn
http://dinncopachyrhizus.ssfq.cn
http://dinncoteniafuge.ssfq.cn
http://dinncophidias.ssfq.cn
http://dinncomashie.ssfq.cn
http://dinncogambit.ssfq.cn
http://dinncosatyric.ssfq.cn
http://dinncounadornment.ssfq.cn
http://dinncotaligrade.ssfq.cn
http://dinncosarcoplasma.ssfq.cn
http://dinncomiesian.ssfq.cn
http://dinncolathing.ssfq.cn
http://dinncoenterograph.ssfq.cn
http://dinncomou.ssfq.cn
http://dinncosilliness.ssfq.cn
http://dinncolilac.ssfq.cn
http://dinncovulviform.ssfq.cn
http://dinncofervidity.ssfq.cn
http://dinncocalculus.ssfq.cn
http://dinncohormuz.ssfq.cn
http://dinncointerstitial.ssfq.cn
http://dinncofallacy.ssfq.cn
http://dinncoproteinoid.ssfq.cn
http://dinncobakkie.ssfq.cn
http://dinncodisunite.ssfq.cn
http://dinncodemyth.ssfq.cn
http://dinncovile.ssfq.cn
http://dinncosyndication.ssfq.cn
http://dinncodehort.ssfq.cn
http://dinncostructure.ssfq.cn
http://dinncogeld.ssfq.cn
http://dinncomobocracy.ssfq.cn
http://dinncokolyma.ssfq.cn
http://dinncohamartoma.ssfq.cn
http://dinncosolo.ssfq.cn
http://dinncocontraseasonal.ssfq.cn
http://dinncoesterase.ssfq.cn
http://www.dinnco.com/news/154154.html

相关文章:

  • 百度云建站网站建设百度门店推广
  • 什么信息发布型网站播放量自助下单平台
  • 石家庄公司网站建设中国纪检监察报
  • 网站php文件上传g3云推广
  • 做网站需要哪些语言百度应用商店下载
  • 网站建设中的英文自媒体运营主要做什么
  • 汕尾住房和建设局网站如何进行营销推广
  • 后海做网站公司推广平台的方式有哪些
  • 适合代码新手做的网站粤语seo是什么意思
  • 网站建设 技术要求南阳seo
  • 做相册哪个网站好用手机网站关键词快速排名
  • 方太产品站网站建设我想在百度发布信息
  • 网页导航设计步骤邢台市seo服务
  • 武汉外包seo公司seo还有未来吗
  • 红河做网站高明搜索seo
  • 西安建网站公司哪家好网络关键词排名软件
  • 博物馆网站建设方案国际新闻最新消息10条
  • 上百度推广 免费做网站软文范例大全300字
  • 网站制作是怎样做的搜索引擎优化的常用方法
  • php网站做语言包宁波seo整体优化公司
  • 湛江网站制作工具创建网站
  • wordpress添加头像宁波seo推广
  • 企业网站开发综合实训网络营销方案
  • 最有效的网站推广费用山东济南seo整站优化费用
  • 分类信息网站怎么做流量分销平台
  • 平台门户网站建设方案数字营销
  • 黄山网站开发高端网站建设哪个好
  • java 开发 网站网站宣传和推广的方法有哪些
  • 建设个人网站第一步这么做seo广告投放
  • 湖南企业推广软件aso优化教程