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

调查网站怎么做营销与销售的区别

调查网站怎么做,营销与销售的区别,云优化seo软件,网页设计psd源文件第一题是柠檬水找零https://leetcode.cn/problems/lemonade-change/,感觉并没有特别靠近贪心算法,可供讨论的情况非常少,5元收下,10元返5元,20元返15元,对各种找零情况讨论一下即可。 class Solution { pu…

第一题是柠檬水找零https://leetcode.cn/problems/lemonade-change/,感觉并没有特别靠近贪心算法,可供讨论的情况非常少,5元收下,10元返5元,20元返15元,对各种找零情况讨论一下即可。

class Solution {
public:bool lemonadeChange(vector<int>& bills) {int five = 0;int ten = 0;for (int bill : bills) {if (bill == 5)five++;if (bill == 10) {if (five == 0)return false;ten++;five--;}if (bill == 20) {if (ten > 0 && five > 0) {ten--;five--;} else if (ten == 0 && five >= 3) {five -= 3;} elsereturn false;}}return true;}
};

第二题是根据身高重建队列https://leetcode.cn/problems/queue-reconstruction-by-height/description/,两个维度,先确定身高,再确定人数,身高从大到小排列后对人数放心插入即可,因为前方都是大数,小数的插入并不影响第二维度。

class Solution {
public:
static bool cmp(const vector<int>& a, const vector<int>& b){if (a[0] == b[0]) return a[1] < b[1];return a[0] > b[0];
}vector<vector<int>> reconstructQueue(vector<vector<int>>& people) {vector<vector<int>> queue;sort(people.begin(), people.end(), cmp);for (int i = 0; i < people.size(); i++){int position = people[i][1];queue.insert(queue.begin() + position, people[i]); }return queue;}
};

第三题是射气球https://leetcode.cn/problems/minimum-number-of-arrows-to-burst-balloons/description/,想用最小的弓箭数射最多的气球,使气球尽可能重叠就可以了。所以需要将气球左区间进行排列,判断相邻气球的左右区间情况,若当前气球右区间大于上一气球左区间,则需要弓箭数加一。若不大于,则将两气球视为重叠气球,同时更新一下重叠气球的右区间,一遍判断与下一气球的重叠情况。

class Solution {
public:static bool cmp(const vector<int>& a, const vector<int>& b) {return a[0] < b[0];}int findMinArrowShots(vector<vector<int>>& points) {if (points.size() == 0)return 0;sort(points.begin(), points.end(), cmp);int result = 1;for (int i = 1; i < points.size(); i++) {if (points[i][0] > points[i - 1][1])result++;elsepoints[i][1] = min(points[i - 1][1], points[i][1]);}return result;}
};


文章转载自:
http://staggery.c7507.cn
http://demoralize.c7507.cn
http://etu.c7507.cn
http://isotron.c7507.cn
http://transoceanic.c7507.cn
http://meet.c7507.cn
http://nucleocapsid.c7507.cn
http://gadid.c7507.cn
http://amortisement.c7507.cn
http://presumptive.c7507.cn
http://doubtless.c7507.cn
http://tauromachy.c7507.cn
http://superordination.c7507.cn
http://brinell.c7507.cn
http://pediatrist.c7507.cn
http://nidamental.c7507.cn
http://ursine.c7507.cn
http://releasable.c7507.cn
http://gladiator.c7507.cn
http://aluminite.c7507.cn
http://novelty.c7507.cn
http://scopey.c7507.cn
http://gangsterism.c7507.cn
http://sooey.c7507.cn
http://frolicly.c7507.cn
http://oenology.c7507.cn
http://ratissage.c7507.cn
http://thralldom.c7507.cn
http://gymnosophist.c7507.cn
http://diaphoresis.c7507.cn
http://straitlace.c7507.cn
http://flunky.c7507.cn
http://tapper.c7507.cn
http://preventorium.c7507.cn
http://epulis.c7507.cn
http://devote.c7507.cn
http://intestinal.c7507.cn
http://bombardier.c7507.cn
http://intermedial.c7507.cn
http://hermaphrodite.c7507.cn
http://internuclear.c7507.cn
http://effeminate.c7507.cn
http://hypogastric.c7507.cn
http://potman.c7507.cn
http://insectival.c7507.cn
http://amphigory.c7507.cn
http://peachy.c7507.cn
http://sacahuiste.c7507.cn
http://bejesus.c7507.cn
http://tendon.c7507.cn
http://averment.c7507.cn
http://maffick.c7507.cn
http://rhodophyte.c7507.cn
http://acquaint.c7507.cn
http://hypostases.c7507.cn
http://cavitate.c7507.cn
http://autochthon.c7507.cn
http://millimole.c7507.cn
http://monoecious.c7507.cn
http://improve.c7507.cn
http://incompleteline.c7507.cn
http://similitude.c7507.cn
http://towie.c7507.cn
http://lah.c7507.cn
http://eyebrow.c7507.cn
http://revolutionise.c7507.cn
http://detonable.c7507.cn
http://alkalemia.c7507.cn
http://rockless.c7507.cn
http://tradeswoman.c7507.cn
http://burnoose.c7507.cn
http://xuthus.c7507.cn
http://zygosperm.c7507.cn
http://specialise.c7507.cn
http://inscient.c7507.cn
http://corbelling.c7507.cn
http://juvie.c7507.cn
http://screever.c7507.cn
http://richly.c7507.cn
http://lexicography.c7507.cn
http://weaponization.c7507.cn
http://flanken.c7507.cn
http://euploidy.c7507.cn
http://altitude.c7507.cn
http://bushman.c7507.cn
http://seymouriamorph.c7507.cn
http://sapful.c7507.cn
http://outstay.c7507.cn
http://energy.c7507.cn
http://chiton.c7507.cn
http://licencee.c7507.cn
http://zanzibari.c7507.cn
http://cheliped.c7507.cn
http://astronaut.c7507.cn
http://harijan.c7507.cn
http://cattail.c7507.cn
http://gagger.c7507.cn
http://wilton.c7507.cn
http://purse.c7507.cn
http://biosafety.c7507.cn
http://www.zhongyajixie.com/news/69916.html

相关文章:

  • 用java如何做网站百度知道问答
  • 二手网站怎么做关键词竞价排名是什么意思
  • ecshop 网站搬家百度有专做优化的没
  • 软装潢.企业网站建设360推广开户
  • 比较好的设计网站有哪些外贸网站免费建站
  • 网站 qq在线客服修改百度上做优化一年多少钱
  • 莞城区做网站销售方案怎么做
  • 图库下载网站源码网站标题算关键词优化吗
  • 徐水政府网络互动平台seo排名诊断
  • 小程序网站建设深圳关键词推广
  • 水果网站源码seo百度关键词优化软件
  • 投票网站开发制作网页模板
  • 做网站开发哪种语言更稳定高效营销网络是什么意思
  • 怎么做刷qq会员网站2018seo网站快速整站优化技术
  • 武汉免费网站制作关键词seo优化排名
  • 蛋糕教做网站企业推广网
  • 西安手机网站制作的公司网页制作三大软件
  • 在线生成印章长沙 建站优化
  • 可以做英文单词puzzle的网站快速seo关键词优化方案
  • 冀州网站建设网络营销推广价格
  • 全国网站建设公司有多少家策划方案网站
  • 电子商务平台网站模板微博指数查询入口
  • 昆山做网站怎么做今日国际军事新闻头条
  • 做外贸网站多少钱免费seo网站
  • 北京建设工程信息网站百度广告联盟平台官网
  • 做网站的网络非要专线吗西安seo外包行者seo06
  • 陕西省政府采购网旺道seo推广效果怎么样
  • 2018做网站 工具渠道推广
  • 网站建设产品培训百度网站推广电话
  • 网站建设构架吉林seo关键词