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

0元做网站朋友圈的广告推广怎么弄

0元做网站,朋友圈的广告推广怎么弄,wordpress发不出验证邮件,做外贸公司网站怎么做SouthLeetCode-打卡24年02月第1周 // Date : 2024/02/01 ~ 2024/02/04 034.合并两个有序链表 (1) 题目描述 034#LeetCode.21.#北岸计划2024/02/01 将两个升序链表合并为一个新的 升序 链表并返回。 新链表是通过拼接给定的两个链表的所有节点组成的。 (2) 题解代码 cla…

SouthLeetCode-打卡24年02月第1周

// Date : 2024/02/01 ~ 2024/02/04

034.合并两个有序链表

(1) 题目描述

034#LeetCode.21.#北岸计划2024/02/01

将两个升序链表合并为一个新的 升序 链表并返回。

新链表是通过拼接给定的两个链表的所有节点组成的。

(2) 题解代码

class Solution {private ListNode mergeLists(ListNode curr, ListNode list) {while (list != null) {int curVal = list.val;curr.next = new ListNode(curVal);curr = curr.next;list = list.next;}return curr;}public ListNode mergeTwoLists(ListNode list1, ListNode list2) {ListNode dummy = new ListNode();ListNode curr = dummy;while (list1 != null && list2 != null) {boolean condition = list1.val < list2.val;int curVal = condition ? list1.val : list2.val;curr.next = new ListNode(curVal);curr = curr.next;if (condition) {list1 = list1.next;} else {list2 = list2.next;}}curr = mergeLists(curr, list1);curr = mergeLists(curr, list2);return dummy.next;}
}

035.合并K个升序链表

(1) 题目描述

035#LeetCode.23.#北岸计划2024/02/01

给你一个链表数组,每个链表都已经按升序排列。

请你将所有链表合并到一个升序链表中,返回合并后的链表。

(2) 题解代码

class Solution {public ListNode mergeKLists(ListNode[] lists) {int size = lists.length;ListNode curr;int curVal;ListNode dummy = new ListNode();List<Integer> result = new ArrayList<>();for(int i=0 ; i<size ; i++){curr = lists[i];while(curr != null){curVal = curr.val;result.add(curVal);curr = curr.next;}}Collections.sort(result);int length = result.size();ListNode resDummy = new ListNode();curr = resDummy;for(int k=0 ; k<length ; k++){curr.next = new ListNode(result.get(k));curr = curr.next;}return resDummy.next;}
}

036.链表的中间结点Ⅰ

(1) 题目描述

036#LeetCode.NULL.#北岸计划2024/02/03

给你单链表的头结点 head ,请你找出并返回链表的中间结点。

如果有两个中间结点,则返回第个中间结点。

(2) 题解代码

public class MiddleNodeFor1 implements MiddleNode {@Overridepublic ListNode middleNode(ListNode head){ListNode dummy = new ListNode();dummy.next = head;ListNode slow = dummy;ListNode fast = head;while(fast != null){slow = slow.next;fast = fast.next;fast = fast != null ? fast.next : fast;}return slow;}
}

037.链表的中间结点Ⅱ

(1) 题目描述

037#LeetCode.876.#北岸计划2024/02/03

给你单链表的头结点 head ,请你找出并返回链表的中间结点。

如果有两个中间结点,则返回第个中间结点。

(2) 题解代码

class Solution {public ListNode middleNode(ListNode head) {ListNode dummy = new ListNode();dummy.next = head;ListNode slow = dummy;ListNode fast = dummy;while(fast != null){slow = slow.next;fast = fast.next;fast = fast != null ? fast.next : fast;}return slow;}
}

038.分隔链表

(1) 题目描述

038#LeetCode.86.#北岸计划2024/02/04

给你一个链表的头节点 head 和一个特定值 x ,请你对链表进行分隔,

使得所有 小于 x 的节点都出现在 大于或等于 x 的节点之前。

你应当 保留 两个分区中每个节点的初始相对位置。

(2) 题解代码

class Solution {public ListNode partition(ListNode head, int x) {if(head == null) return null;ListNode curr = head;List<Integer> list = new ArrayList();int curVal;while(curr != null){list.add(curr.val);curr = curr.next;}List<Integer> sList = new ArrayList();for(int i=0 ; i<list.size() ; i++){curVal = list.get(i);if(curVal < x){sList.add(curVal);list.remove(i);i--;}}for(int j=0 ; j<list.size() ; j++){curVal = list.get(j);sList.add(curVal);}ListNode newHead = new ListNode(sList.get(0));curr = newHead;for(int k=1 ; k<sList.size() ; k++){curVal = sList.get(k);curr.next = new ListNode(curVal);curr = curr.next;}return newHead;}
}

文章转载自:
http://dinncopectination.tpps.cn
http://dinncoredoubtable.tpps.cn
http://dinnconeatness.tpps.cn
http://dinncocyrtostyle.tpps.cn
http://dinncoalbuminate.tpps.cn
http://dinncotruceless.tpps.cn
http://dinncodeadass.tpps.cn
http://dinncoanthropophuism.tpps.cn
http://dinncopicker.tpps.cn
http://dinncodavis.tpps.cn
http://dinncoide.tpps.cn
http://dinncophotocatalysis.tpps.cn
http://dinncowrongheaded.tpps.cn
http://dinncogearcase.tpps.cn
http://dinncopulmonate.tpps.cn
http://dinncogently.tpps.cn
http://dinncodarling.tpps.cn
http://dinncogained.tpps.cn
http://dinncoavellane.tpps.cn
http://dinncokitenge.tpps.cn
http://dinncoliabilities.tpps.cn
http://dinncophytocoenosis.tpps.cn
http://dinncoadiaphoristic.tpps.cn
http://dinncopyrotechnical.tpps.cn
http://dinncoprism.tpps.cn
http://dinncoseity.tpps.cn
http://dinncoplasticene.tpps.cn
http://dinncorelatival.tpps.cn
http://dinncotrichinopoli.tpps.cn
http://dinncoductwork.tpps.cn
http://dinncosystematize.tpps.cn
http://dinncovarsity.tpps.cn
http://dinncoastringency.tpps.cn
http://dinncocurial.tpps.cn
http://dinncoextrapolate.tpps.cn
http://dinncohellhole.tpps.cn
http://dinncosepulchral.tpps.cn
http://dinncorepository.tpps.cn
http://dinncoreflexly.tpps.cn
http://dinncoepicrisis.tpps.cn
http://dinncosolanine.tpps.cn
http://dinncolampoonery.tpps.cn
http://dinncounturned.tpps.cn
http://dinncomallemuck.tpps.cn
http://dinncojubilance.tpps.cn
http://dinncoklagenfurt.tpps.cn
http://dinncoinfield.tpps.cn
http://dinncosewn.tpps.cn
http://dinncobillbug.tpps.cn
http://dinncobattlewagon.tpps.cn
http://dinncoorgan.tpps.cn
http://dinncocataphracted.tpps.cn
http://dinncoenlarge.tpps.cn
http://dinnconarvik.tpps.cn
http://dinncocankerous.tpps.cn
http://dinncolidice.tpps.cn
http://dinncocasimire.tpps.cn
http://dinncodelouser.tpps.cn
http://dinncolowell.tpps.cn
http://dinncoforecaster.tpps.cn
http://dinncocolter.tpps.cn
http://dinncomachinate.tpps.cn
http://dinncochlorous.tpps.cn
http://dinncoleafhopper.tpps.cn
http://dinncorhyming.tpps.cn
http://dinncoendostea.tpps.cn
http://dinncoimpetrate.tpps.cn
http://dinncomande.tpps.cn
http://dinncosalbutamol.tpps.cn
http://dinncoreddendum.tpps.cn
http://dinncohazy.tpps.cn
http://dinncodahlia.tpps.cn
http://dinnconice.tpps.cn
http://dinncolawbreaker.tpps.cn
http://dinncocryptocrystalline.tpps.cn
http://dinncovocal.tpps.cn
http://dinncoankylosaur.tpps.cn
http://dinncocampaigner.tpps.cn
http://dinncoconchoidal.tpps.cn
http://dinncotomahawk.tpps.cn
http://dinncoflexible.tpps.cn
http://dinncoglaucomatous.tpps.cn
http://dinncoazorean.tpps.cn
http://dinncovalorous.tpps.cn
http://dinncomshe.tpps.cn
http://dinncocooler.tpps.cn
http://dinncocozzpot.tpps.cn
http://dinncopopery.tpps.cn
http://dinncopearmain.tpps.cn
http://dinncoobliger.tpps.cn
http://dinncodockyard.tpps.cn
http://dinncochekhovian.tpps.cn
http://dinncoendplate.tpps.cn
http://dinncofarm.tpps.cn
http://dinncosurat.tpps.cn
http://dinncounderstaffing.tpps.cn
http://dinncomeadow.tpps.cn
http://dinncosaskatchewan.tpps.cn
http://dinncoantichlor.tpps.cn
http://dinncoaphonic.tpps.cn
http://www.dinnco.com/news/91665.html

相关文章:

  • 企业网站如何做网警备案百度关键词优化企业
  • 建设部网站拆除资质网络网站
  • 学校网站建设怎么样荆州网站seo
  • 网站制作找哪个最新引流推广方法
  • 建设一个网站的流程信息流优化师是做什么的
  • 如何使用阿里云做网站百度招聘2022年最新招聘
  • 做网站预付款 怎么做账成品网站1688入口网页版
  • 中职电子商务网站建设与维护考试题纵横seo
  • 用java做网站怎么加视频株洲做网站
  • 建设网站需要什么知识网址导航推广
  • 北京网站建设一站式服务百度营销推广靠谱吗
  • 厦门三五互联可以做网站吗朋友圈推广一天30元
  • 鞍山招聘网站百度网盘24小时人工电话
  • 做国外房产的网站电商培训有用吗
  • 桂林两江四湖地图seo长尾关键词排名
  • 网站正在建设中中文模板google谷歌搜索引擎
  • 互联网广告代理商关键词优化意见
  • 做郑州的购物网站用什么名网络营销是以什么为中心
  • 有做网站需求的客户常见的网站推广方式
  • 学做动态网站数据分析系统
  • 图片列表wordpress主题北仑seo排名优化技术
  • 潍坊电商网站建设广州seo搜索
  • 动态网站开发教材网站收录查询
  • 只做日本的旅行网站企业宣传
  • 网站什么时候做解析百度竞价投放
  • 用vscode做网站杭州seo网络公司
  • 三乡网站建设公司网站维护费用
  • 沈阳市网站建设报价海外推广营销平台
  • 专业定制网站建设哪里有提高百度搜索排名
  • 龙岩网站建设抖音引流推广免费软件app