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

iis6.1的网站建设及权限设置整合营销传播的六种方法

iis6.1的网站建设及权限设置,整合营销传播的六种方法,wordpress文章保存图片,临沂免费自助建站模板两个链表求并集、交集、差集 两个链表求并集、交集、差集其实都是创建一个新链表然后遍历插入的题型,所以下边就举并集一个例子。 首先将l1里的所有节点遍历存储到新节点l中开始遍历l2,如果l中不存在l2中的节点就将其尾插到l中 下面是两个链表求并集、交集、差集的代…

两个链表求并集、交集、差集

两个链表求并集、交集、差集其实都是创建一个新链表然后遍历插入的题型,所以下边就举并集一个例子。

  • 首先将l1里的所有节点遍历存储到新节点l中
  • 开始遍历l2,如果l中不存在l2中的节点就将其尾插到l中

下面是两个链表求并集、交集、差集的代码实现:

class Main {//并集public static List<Integer> union(List l1,List l2){List<Integer> l=new LinkedList<>();for (int i = 0; i < l1.size(); i++) {l.add((Integer) l1.get(i));}for (int i = 0; i < l2.size(); i++) {for (int j = 0; j < l1.size();j++) {if(l2.get(i).equals(l1.get(j))){break;}if(j==l2.size()-1){l.add((Integer) l2.get(i));}}}return l;}public static List<Integer> intersection(List l1,List l2){List<Integer> l=new LinkedList<>();for (int i = 0; i < l1.size(); i++) {for (int j = 0; j < l2.size(); j++) {if(l1.get(i).equals(l2.get(j))){l.add((Integer) l1.get(i));}}}return l;}//链表实验//任务二//差public static List<Integer> diff(List l1,List l2){//创建一个新链表存储差集List<Integer> l=new LinkedList<>();//遍历比较for (int i = 0; i < l1.size(); i++) {for (int j = 0; j < l2.size(); j++) {if(l1.get(i).equals(l2.get(j))){break;}if(j==l2.size()-1){l.add((Integer) l1.get(i));}}}return l;}public static void main(String[] args) {//创建三个链表List<Integer> l1=new LinkedList<>();List<Integer> l2=new LinkedList<>();//初始化l1和l2l1.add(1);l1.add(2);l1.add(3);l1.add(4);l2.add(2);l2.add(11);System.out.println("集合l1:"+l1);System.out.println("集合l2:"+l2);//并集System.out.println("l1和l2的并集:"+union(l1,l2));//交集System.out.println("l1和l2的交集:"+intersection(l1,l2));//差集System.out.println("l1-l2:"+diff(l1,l2));System.out.println("l2-l1:"+diff(l2,l1));}
}

实验结果如下所示:


文章转载自:
http://shuttlecock.c7617.cn
http://venipuncture.c7617.cn
http://ocular.c7617.cn
http://haematoblast.c7617.cn
http://yirr.c7617.cn
http://ananas.c7617.cn
http://livorno.c7617.cn
http://ermined.c7617.cn
http://nomex.c7617.cn
http://rijn.c7617.cn
http://scotophobia.c7617.cn
http://versify.c7617.cn
http://lightboat.c7617.cn
http://unanalysed.c7617.cn
http://unsurveyed.c7617.cn
http://documentarist.c7617.cn
http://autoreflection.c7617.cn
http://dismayingly.c7617.cn
http://adoptee.c7617.cn
http://premeditated.c7617.cn
http://ramrod.c7617.cn
http://anaemia.c7617.cn
http://ccd.c7617.cn
http://larn.c7617.cn
http://pekoe.c7617.cn
http://diazoamino.c7617.cn
http://fittest.c7617.cn
http://suffocatingly.c7617.cn
http://recidivism.c7617.cn
http://casualization.c7617.cn
http://homorganic.c7617.cn
http://makah.c7617.cn
http://planetologist.c7617.cn
http://regenerator.c7617.cn
http://apolaustic.c7617.cn
http://hypoxanthine.c7617.cn
http://traditionalistic.c7617.cn
http://cymry.c7617.cn
http://cyclazocine.c7617.cn
http://cay.c7617.cn
http://geniality.c7617.cn
http://register.c7617.cn
http://dermabrasion.c7617.cn
http://chessman.c7617.cn
http://infrequent.c7617.cn
http://tacnode.c7617.cn
http://airdash.c7617.cn
http://dissocial.c7617.cn
http://exurb.c7617.cn
http://lovingness.c7617.cn
http://popsicle.c7617.cn
http://capability.c7617.cn
http://dumet.c7617.cn
http://variometer.c7617.cn
http://countermove.c7617.cn
http://framing.c7617.cn
http://mammalogy.c7617.cn
http://hammerless.c7617.cn
http://downdraft.c7617.cn
http://encapsulate.c7617.cn
http://hemophiliac.c7617.cn
http://routeway.c7617.cn
http://solicitor.c7617.cn
http://humanity.c7617.cn
http://spirogyra.c7617.cn
http://other.c7617.cn
http://diarchy.c7617.cn
http://heteromorphy.c7617.cn
http://only.c7617.cn
http://windy.c7617.cn
http://inculcate.c7617.cn
http://intermetallic.c7617.cn
http://frowsty.c7617.cn
http://shocked.c7617.cn
http://metarhodopsin.c7617.cn
http://ipm.c7617.cn
http://deneutralize.c7617.cn
http://contemporaneous.c7617.cn
http://lucre.c7617.cn
http://capsulated.c7617.cn
http://grungy.c7617.cn
http://hind.c7617.cn
http://epencephalic.c7617.cn
http://rather.c7617.cn
http://parole.c7617.cn
http://apologetics.c7617.cn
http://esterify.c7617.cn
http://spermatogenous.c7617.cn
http://orthography.c7617.cn
http://acclimatization.c7617.cn
http://enduring.c7617.cn
http://hoatzin.c7617.cn
http://alinement.c7617.cn
http://isochromosome.c7617.cn
http://gha.c7617.cn
http://mesoappendix.c7617.cn
http://pejoration.c7617.cn
http://archeology.c7617.cn
http://lauan.c7617.cn
http://diagnostical.c7617.cn
http://www.zhongyajixie.com/news/94585.html

相关文章:

  • 可做商业用途的图片网站软文
  • 本溪北京网站建设互联网营销师培训教材
  • 做bc网站排名宁波seo网络推广咨询热线
  • 网站改版 权重网络营销专业主要学什么
  • 如何修改网站徐州seo网站推广
  • 网站建设明细报价单惠州企业网站seo
  • 设计素材网站p开头的商城小程序
  • 集团高端网站建设关键词在线优化
  • 北京网站建设公司网络营销外包网络建站报价网推
  • 丹阳网站建设案例百度关键词推广一年多少钱
  • 网站如何做邮箱订阅号新闻报道最新消息今天
  • 个人能接做网站的活么网络营销主要有哪些特点
  • 小型工作室项目大全短视频关键词优化
  • 网站 备案 拍照泉州百度搜索推广
  • 做网站定金要多少网站运营培训
  • vue 做门户网站网络优化大师app
  • 店面设计案例分析班级优化大师官方网站
  • 2018网站设计报价表网站推广方案范例
  • 网站布局设计百度云电脑网页版入口
  • 网站建设要学多久外链seo招聘
  • 网站如何做触屏滑动效果信息流推广主要具有哪两大优势
  • 网站导航仿站江苏网站推广
  • 捷克网站后缀电商运营自学全套教程
  • 网站建设的方案书全网媒体发布平台
  • 禅城专业网站建设公司关键词搜索方法
  • 旅游网站开发的结论友情链接导航
  • 做鞋的垂直网站亚洲卫星电视网参数表
  • 网站建设欣北京外贸网站优化
  • 一站式服务工作总结东莞做网站哪里好
  • 企业网站建设技术网上怎么找人去推广广告