MOC-Leetcode-数据结构

数组

可以在这里查看笔记:数组笔记

Leetcode Hot 100 中的数组题目:题库 - 力扣 (LeetCode)

table
	tags AS "Tags",
	level AS "难度"
from "300_CSNotes/302_Leetcode/302_atom"
where contains(file.tags, "算法/数组")
sort file.ctime

链表

技巧

  • 注意哨兵节点dummy技巧
  • Python中,node.next所代表的是一个类(ListNode)
  • 遇到链表题的时候,要注意cur节点继续往下走别忘了,建议把所有节点往下走的代码一起写。
  • 如何找到链表的中点:快慢指针
  • 想直到链表的长度,只能遍历。

可以在这里查看笔记:链表笔记

Leetcode Hot 100 中的链表题目:题库 - 力扣 (LeetCode)

table
	tags AS "Tags",
	level AS "难度"
from "300_CSNotes/302_Leetcode/302_atom"
where contains(file.tags, "算法/链表")
sort file.ctime

二叉树

可以在这里查看笔记:二叉树笔记

很好的笔记合集LFool’s Notes

Leetcode Hot 100 中的二叉树题目:题库 - 力扣 (LeetCode)

table
	tags AS "Tags",
	level AS "难度"
from "300_CSNotes/302_Leetcode/302_atom"
where contains(file.tags, "算法/二叉树")
sort file.ctime

字符串

Leetcode Hot 100 中的字符串题目:

Python中字符串的常用操作 Python-String-字符串常见操作

table
	level AS "难度",
	tags AS "Tags"
from "300_CSNotes/302_Leetcode/302_atom"
where contains(file.tags, "算法/字符串")
sort file.ctime

可以在这里查看笔记:栈笔记

Leetcode Hot 100 中的关于栈的题目:题库 - 力扣 (LeetCode)

序号题目难度标签

哈希表

可以在这里查看笔记:哈希表笔记

Leetcode Hot 100 中关于哈希表的题目

序号题目难度标签