Alice52 / algorithms

This repository is for learning Algorithms.
https://programmercarl.com/
0 stars 0 forks source link

[daily] 2021-09-15 #183

Closed Alice52 closed 3 years ago

Alice52 commented 3 years ago
  1. reference

  2. discription

    • 反转链表
  3. core

    • 双指针迭代: pre, cur
    • stack
    • recursive

  1. reference

  2. discription

      1. 两两交换链表中的节点
  3. core

    • 递归
    • 虚拟节点: 遍历原始链表添加到新的链表

  1. reference
  2. discription
      1. 删除链表的倒数第 N 个结点
  3. core

    • 双指针 dummy + 第一个先走 n

  1. reference
  2. discription
    • 面试题 02.07. 链表相交
  3. core

    • 需要走到为节点之后的 null + 参数不能变

  1. reference
  2. discription
    • 环形链表 II: 单链表的交点
  3. core

    • Map
    • 快慢指针