Skip to content

winoooops/Leetcode-1001

Repository files navigation

算法一千零一夜

算法基础: 数组

常见基本思路:

Data Structure: LinkedList

  • create sentinel node
  • use two pointers to traverse the linked list
  • check if there's loop: two pointer with different speed
  • adding or removing nodes: change the prev/next pointer of the node, instead of changing the node itself

算法基础: 哈希表

哈希表基础

算法基础: 字符串

算法基础: 双指针

双指针法并不隶属于某一种数据结构,在数组,链表,字符串都用到了双指针法.

算法基础: 栈和队列

先进后出, 后进先出 FILO

队列

先进先出, 后进后出 FIFO

算法基础: 二叉树

概念和常见题型

review

About

LeetCode算法的一千零一夜

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published