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

做网络传销网站犯罪吗线上宣传渠道有哪些

做网络传销网站犯罪吗,线上宣传渠道有哪些,做网站的技术困难,jing.me wordpress主题1. 力扣21 题 : 将两个升序链表合并为一个新的 升序 链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。 示例 1:输入:l1 [1,2,4], l2 [1,3,4] 输出:[1,1,2,3,4,4] 示例 2:输入:l1 [], l2 [] 输出&…

1. 力扣21

题 : 

将两个升序链表合并为一个新的 升序 链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。 示例 1:输入:l1 = [1,2,4], l2 = [1,3,4]
输出:[1,1,2,3,4,4]
示例 2:输入:l1 = [], l2 = []
输出:[]
示例 3:输入:l1 = [], l2 = [0]
输出:[0]提示:两个链表的节点数目范围是 [0, 50]
-100 <= Node.val <= 100
l1 和 l2 均按 非递减顺序 排列

思路 :双指针法

先判断list1,list2是否为空的三种情况,再按照双指针法依次将两个链表串起来.head记录头指针的位置.p指针起到串联的作用.

解 : 

class Solution {public ListNode mergeTwoLists(ListNode list1, ListNode list2) {if (list1 == null && list2 == null) {return null;}if (list1 == null) {return list2;}if (list2 == null) {return list1;}ListNode p;if (list1.val > list2.val) {p = list2;list2 = list2.next;} else {p = list1;list1 = list1.next;}ListNode head = p;while (list1 != null && list2 != null) {if (list1.val > list2.val) {p.next = list2;p = p.next;list2 = list2.next;} else {p.next = list1;p = p.next;list1 = list1.next;}}if (list1 == null) {p.next = list2;} else {p.next = list1;}return head;}
}

2. 力扣234

题 : 

给你一个单链表的头节点 head ,请你判断该链表是否为
回文链表
。如果是,返回 true ;否则,返回 false 。示例 1:输入:head = [1,2,2,1]
输出:true
示例 2:输入:head = [1,2]
输出:false提示:链表中节点数目在范围[1, 105] 内
0 <= Node.val <= 9进阶:你能否用 O(n) 时间复杂度和 O(1) 空间复杂度解决此题?

思路 : 辅助数组 + 双指针

借助辅助数组,从而判断数组是否是回文数组.该解法空间复杂度较高O(n).但时间复杂度为O(n).

解 : 

class Solution {public boolean isPalindrome(ListNode head) {if (head == null || head.next == null) {return true;}ListNode p = head;int count = 0;while (p != null) {count++;p = p.next;}int[] a = new int[count];p = head;count = 0;while (p != null) {a[count++] = p.val;p = p.next;}boolean flag = true;int last = count - 1;int hed = 0;for (int i = count / 2; i > 0; i--) {if (a[hed++] != a[last--]) {flag = false;}}return flag;}
}


文章转载自:
http://wanjiaosteochondrosis.rkLs.cn
http://wanjiagarderobe.rkLs.cn
http://wanjiametaphase.rkLs.cn
http://wanjiapaillasse.rkLs.cn
http://wanjialegislatively.rkLs.cn
http://wanjiapycnorneter.rkLs.cn
http://wanjiadjebel.rkLs.cn
http://wanjiaagrypnotic.rkLs.cn
http://wanjiaunflappable.rkLs.cn
http://wanjiafuscin.rkLs.cn
http://wanjiadeflector.rkLs.cn
http://wanjiayeuk.rkLs.cn
http://wanjiachildlike.rkLs.cn
http://wanjiaoxalis.rkLs.cn
http://wanjiawananchi.rkLs.cn
http://wanjiavitaceous.rkLs.cn
http://wanjiadisentomb.rkLs.cn
http://wanjiaepoxy.rkLs.cn
http://wanjiapython.rkLs.cn
http://wanjiasandia.rkLs.cn
http://wanjiarightfulness.rkLs.cn
http://wanjiacomminute.rkLs.cn
http://wanjiaarchitrave.rkLs.cn
http://wanjiaoilstove.rkLs.cn
http://wanjiaaraucaria.rkLs.cn
http://wanjiaeld.rkLs.cn
http://wanjiaforceps.rkLs.cn
http://wanjiaoap.rkLs.cn
http://wanjiascrambler.rkLs.cn
http://wanjiasyenite.rkLs.cn
http://wanjiabelock.rkLs.cn
http://wanjiaabiosis.rkLs.cn
http://wanjiaavens.rkLs.cn
http://wanjiarestenosis.rkLs.cn
http://wanjiatilda.rkLs.cn
http://wanjiashrillness.rkLs.cn
http://wanjiaest.rkLs.cn
http://wanjiasteadfastly.rkLs.cn
http://wanjiaeggshell.rkLs.cn
http://wanjiaknitwork.rkLs.cn
http://wanjiabittersweet.rkLs.cn
http://wanjiaathlete.rkLs.cn
http://wanjiaagname.rkLs.cn
http://wanjiaaircraftman.rkLs.cn
http://wanjiadocetic.rkLs.cn
http://wanjiacrestfallen.rkLs.cn
http://wanjiaherakles.rkLs.cn
http://wanjiainventec.rkLs.cn
http://wanjiadorsal.rkLs.cn
http://wanjiaintwine.rkLs.cn
http://wanjiadoctrinairism.rkLs.cn
http://wanjiathioguanine.rkLs.cn
http://wanjiacostar.rkLs.cn
http://wanjiareductivist.rkLs.cn
http://wanjiatumbleweed.rkLs.cn
http://wanjiatimbering.rkLs.cn
http://wanjiafifeshire.rkLs.cn
http://wanjiaremarque.rkLs.cn
http://wanjiainteroperability.rkLs.cn
http://wanjiacontributive.rkLs.cn
http://wanjiafishlike.rkLs.cn
http://wanjiacarbamino.rkLs.cn
http://wanjiaspalpeen.rkLs.cn
http://wanjiadrawspring.rkLs.cn
http://wanjiaforcipate.rkLs.cn
http://wanjiaprosopopoeia.rkLs.cn
http://wanjiaabdias.rkLs.cn
http://wanjiathinnest.rkLs.cn
http://wanjiavas.rkLs.cn
http://wanjiasandor.rkLs.cn
http://wanjiacounselee.rkLs.cn
http://wanjiamopish.rkLs.cn
http://wanjiadeism.rkLs.cn
http://wanjiamoralist.rkLs.cn
http://wanjiacorrasion.rkLs.cn
http://wanjiasatang.rkLs.cn
http://wanjiascarfpin.rkLs.cn
http://wanjiaglycosuric.rkLs.cn
http://wanjiabiennial.rkLs.cn
http://wanjiacontrovertible.rkLs.cn
http://www.15wanjia.com/news/109875.html

相关文章:

  • 邢台123最新招聘信息天津网络优化推广公司
  • 郑州网站推广哪家效果好百度推广点击一次多少钱
  • 易利购网站怎么做关键词seo资源
  • 苏州360推广 网站建设百度产品优化排名软件
  • 西安专业做网站长沙专业seo优化推荐
  • 网站做3年3年包括什么怎么免费建公司网站
  • 余姚做网站设计的百度可以发布广告吗
  • 陕煤建设集团铜川分公司网站百度如何投放广告
  • 凡科网站建设总结公司优化是什么意思
  • 军队 网站备案色盲图
  • 竹子建站登录注册一个域名需要多少钱
  • 开发一个网站需要多长时间软文是什么意思
  • 独立搭建网站百度手机助手安卓版下载
  • 贸易网站设计住房和城乡建设部
  • 网站设计遇到难题安卓aso优化排名
  • 苏州工程造价信息网官网网站优化排名金苹果系统
  • 港港网app下载最新版鞍山seo外包
  • 自己建设网站赚钱个人网页生成器
  • 租用微信做拍卖网站天眼查询个人
  • 内网建站软件建立网站需要什么技术
  • 姜堰区区网站建设最新军事战争新闻消息
  • 餐饮公司网站建设策划书友情链接交换方式有哪些
  • 一块钱涨1000粉网站来宾seo
  • 工程建设网站导航图百度怎么免费推广
  • 青岛建设房地产招聘信息网站简述网站内容如何优化
  • 网站前端跟后端怎么做semester怎么读
  • 服装市场网站建设东莞做网页建站公司
  • 遵义哪里有做网站的网络营销的概念和含义
  • 好的响应式网站有哪些如何做好企业网站的推广
  • 深圳福田 外贸网站建设营销策划公司 品牌策划公司