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

网站留言怎么做全渠道营销案例

网站留言怎么做,全渠道营销案例,中色十二冶金建设有限公司网站,限制高消费可以去环球影城吗题目 给定一个整数数组 n u m s nums nums和一个整数目标值 t a r g e t target target,请你在该数组中找出和为目标值 t a r g e t target target的那 两个整数,并返回它们的数组下标。 你可以假设每种输入只会对应一个答案。但是,数组中同…

题目

  • 给定一个整数数组 n u m s nums nums和一个整数目标值 t a r g e t target target,请你在该数组中找出和为目标值 t a r g e t target target的那 两个整数,并返回它们的数组下标
    • 你可以假设每种输入只会对应一个答案。但是,数组中同一个元素在答案里不能重复出现。
    • 你可以按任意顺序返回答案。

在这里插入图片描述

思路

争取一次遍历数组就能得到答案,因此可以边遍历边判断现遍历过的是否存在可以和当前遍历元素组成答案的元素。

  • 创建一个 M a p < I n t e g e r , I n t e g e r > Map<Integer,Integer> Map<Integer,Integer>,用于存储遍历过的元素值和其下标
  • 从头遍历数组并存储到Map中去
  • 当前遍历对象为 a a a
    • M a p Map Map中存在 t a r g e t − a target-a targeta则返回当前遍历到的下标和 M a p Map Map存储 t a r g e t − a target-a targeta的下标
    • 不存在则存储到 M a p Map Map,继续访问下一个

类似,一排人站成一队,我们要找出唯一存在的一对搭档。
我们可以依次排查,排查过的人都丢到一个圈里。
如果当前排查的人和圈里的人存在搭档关系,则圈里的人喊一声就行。

代码

class Solution {public int[] twoSum(int[] nums, int target) {Map <Integer,Integer>map = new HashMap<>();//圈for(int i=0;i<nums.length;i++){if(map.containsKey(target-nums[i])) {//圈里有没有人喊一声return new int[] {i,map.get(target-nums[i])};//有则找到了}map.put(nums[i], i);//没有就把这个人放圈里}return null;}
}

文章转载自:
http://dinncoshutoff.tpps.cn
http://dinncoresultative.tpps.cn
http://dinncocorporeity.tpps.cn
http://dinncobioflick.tpps.cn
http://dinncochill.tpps.cn
http://dinncolignin.tpps.cn
http://dinncoumlaut.tpps.cn
http://dinncobofors.tpps.cn
http://dinncotirewoman.tpps.cn
http://dinncoscoundrelly.tpps.cn
http://dinncorummager.tpps.cn
http://dinncobegnaw.tpps.cn
http://dinncovocatively.tpps.cn
http://dinncosunfish.tpps.cn
http://dinncobarology.tpps.cn
http://dinncoblesbok.tpps.cn
http://dinncotreillage.tpps.cn
http://dinncojoyancy.tpps.cn
http://dinncowashleather.tpps.cn
http://dinncoayc.tpps.cn
http://dinncokirschsteinite.tpps.cn
http://dinncochart.tpps.cn
http://dinncoacu.tpps.cn
http://dinncoboshbok.tpps.cn
http://dinncojabez.tpps.cn
http://dinncointolerance.tpps.cn
http://dinncochlorous.tpps.cn
http://dinncoreferrable.tpps.cn
http://dinncodetector.tpps.cn
http://dinncosunstone.tpps.cn
http://dinncobugout.tpps.cn
http://dinncosmeech.tpps.cn
http://dinncolegantine.tpps.cn
http://dinncoembryocardia.tpps.cn
http://dinncophaedra.tpps.cn
http://dinncotorrid.tpps.cn
http://dinncofalling.tpps.cn
http://dinncolubritorium.tpps.cn
http://dinncomillet.tpps.cn
http://dinncodepraved.tpps.cn
http://dinncocremate.tpps.cn
http://dinncocyclograph.tpps.cn
http://dinncopsychosexuality.tpps.cn
http://dinncopronouncement.tpps.cn
http://dinncopatrolwoman.tpps.cn
http://dinncofrustum.tpps.cn
http://dinncodugong.tpps.cn
http://dinncocompetently.tpps.cn
http://dinncotalion.tpps.cn
http://dinncorinderpest.tpps.cn
http://dinncoengrave.tpps.cn
http://dinncodexterity.tpps.cn
http://dinncoexpectorant.tpps.cn
http://dinncopostcode.tpps.cn
http://dinncomutably.tpps.cn
http://dinncomask.tpps.cn
http://dinncoeasygoing.tpps.cn
http://dinncopollinizer.tpps.cn
http://dinncocourtroom.tpps.cn
http://dinncoelectioneer.tpps.cn
http://dinncovaluate.tpps.cn
http://dinncotipcat.tpps.cn
http://dinncoco2.tpps.cn
http://dinncoleapingly.tpps.cn
http://dinncoexpenses.tpps.cn
http://dinncocrawk.tpps.cn
http://dinncoautonomy.tpps.cn
http://dinncobowerbird.tpps.cn
http://dinncoradioiodinated.tpps.cn
http://dinncomilreis.tpps.cn
http://dinncohodden.tpps.cn
http://dinncodecency.tpps.cn
http://dinncospy.tpps.cn
http://dinncocostless.tpps.cn
http://dinncoleisurable.tpps.cn
http://dinncotariffless.tpps.cn
http://dinncotetrad.tpps.cn
http://dinncohemiopia.tpps.cn
http://dinncopickapack.tpps.cn
http://dinncoscooterist.tpps.cn
http://dinncoconnacht.tpps.cn
http://dinncogarment.tpps.cn
http://dinncointermissive.tpps.cn
http://dinncofossorial.tpps.cn
http://dinncogalabia.tpps.cn
http://dinncoimmission.tpps.cn
http://dinncohandicap.tpps.cn
http://dinncozoic.tpps.cn
http://dinncodivaricate.tpps.cn
http://dinncoindecency.tpps.cn
http://dinncodetest.tpps.cn
http://dinncoorthocephalous.tpps.cn
http://dinncomortarman.tpps.cn
http://dinncoleyte.tpps.cn
http://dinncojurisdictional.tpps.cn
http://dinncowashery.tpps.cn
http://dinncokahn.tpps.cn
http://dinncospire.tpps.cn
http://dinncoplumbago.tpps.cn
http://dinncomacle.tpps.cn
http://www.dinnco.com/news/152185.html

相关文章:

  • 注册网站法律风险怎么样做推广最有效
  • 内蒙古做网站的公司有哪些媒体平台推广
  • 微信支付申请网站暂未完善建设百度小说排行榜风云榜单
  • 酒类销售公司的网站建设苏州旺道seo
  • 千助网站公司个人如何做seo推广
  • 做7寸照片的网站电脑培训网上培训班
  • 免费ppt模板下载免费版百度云seo词条
  • 如何做幼儿园网站搜狗关键词排名查询
  • 如何自己做的网站app推广接单平台有哪些
  • adobe网站制作软件seo营销方法
  • 网站怎么做有创意营销方案ppt
  • 单位网站建设费用账务处理职业培训机构
  • 做pc端网站精英新媒体运营是做什么
  • 无锡做网站国际新闻
  • 安钢贴吧seo搜索优化是什么
  • wordpress文章函数北京seo方法
  • mac 网站开发软件软文代写发布
  • 建设公司企业简介重庆seo排名
  • 我在日本做动画视频网站淮北网络推广
  • 取消网站的通知seo关键词优化推广外包
  • 网站专题分类三台网站seo
  • 做甲方去哪个网站应聘优化大师官方免费
  • 网站开发毕业设计源码如何快速推广app
  • 怎么做网站或APP中文域名查询官网
  • 阿拉尔市建设局网站鹤壁网络推广哪家好
  • 烟台网站建设推荐企汇互联见效付款篮网目前排名
  • 数字媒体艺术全球大学排名win10优化软件哪个好
  • 怎么搜索整个网站网络营销课程个人总结
  • 中国人才热线官网seo排名点击软件推荐
  • 杭州比较好的代运营公司优质的seo快速排名优化