Skip to content

BofanZhou/Algorithms-Notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🧠 算法学习笔记 | Algorithms Notes

LeetCode Python Go License

系统化的算法学习笔记,涵盖数据结构与算法核心知识点,配合 LeetCode 题解

📊 刷题进度📚 知识图谱🔥 高频题目


📊 刷题进度 | Progress

难度 数量 进度
🟢 Easy 0 / 150 %
🟡 Medium 0 / 200 %
🔴 Hard 0 / 100 %
总计 0 / 450 %

📚 知识图谱 | Knowledge Map

算法与数据结构
│
├── 📁 基础数据结构
│   ├── 📄 数组与字符串
│   ├── 📄 链表
│   ├── 📄 栈与队列
│   ├── 📄 哈希表
│   ├── 📄 树与二叉树
│   ├── 📄 堆与优先队列
│   └── 📄 图的基础
│
├── 📁 基础算法
│   ├── 📄 排序算法
│   ├── 📄 二分查找
│   ├── 📄 双指针
│   ├── 📄 滑动窗口
│   ├── 📄 递归与回溯
│   └── 📄 分治法
│
├── 📁 高级数据结构
│   ├── 📄 并查集 (Union-Find)
│   ├── 📄 字典树 (Trie)
│   ├── 📄 线段树
│   ├── 📄 树状数组 (Fenwick Tree)
│   ├── 📄 稀疏表 (Sparse Table)
│   └── 📄 平衡树
│
├── 📁 图论算法
│   ├── 📄 图的遍历 (BFS/DFS)
│   ├── 📄 最短路径 (Dijkstra/Floyd/Bellman-Ford)
│   ├── 📄 最小生成树 (Prim/Kruskal)
│   ├── 📄 拓扑排序
│   ├── 📄 强连通分量
│   └── 📄 网络流
│
├── 📁 动态规划
│   ├── 📄 DP 基础
│   ├── 📄 线性 DP
│   ├── 📄 区间 DP
│   ├── 📄 树形 DP
│   ├── 📄 状态压缩 DP
│   ├── 📄 数位 DP
│   └── 📄 概率 DP
│
└── 📁 其他专题
    ├── 📄 贪心算法
    ├── 📄 位运算
    ├── 📄 数学问题
    ├── 📄 字符串算法 (KMP/Manacher)
    └── 📄 设计问题

📂 目录结构 | Directory Structure

algorithms-notes/
├── 📂 docs/                     # 理论文档
│   ├── 📂 01-basics/            # 基础数据结构
│   │   ├── 📄 01-array.md
│   │   ├── 📄 02-linked-list.md
│   │   ├── 📄 03-stack-queue.md
│   │   ├── 📄 04-hash-table.md
│   │   ├── 📄 05-tree.md
│   │   └── 📄 06-heap.md
│   ├── 📂 02-algorithms/        # 基础算法
│   │   ├── 📄 01-sorting.md
│   │   ├── 📄 02-binary-search.md
│   │   ├── 📄 03-two-pointers.md
│   │   ├── 📄 04-sliding-window.md
│   │   ├── 📄 05-recursion.md
│   │   └── 📄 06-divide-conquer.md
│   ├── 📂 03-advanced-ds/       # 高级数据结构
│   │   ├── 📄 01-union-find.md
│   │   ├── 📄 02-trie.md
│   │   ├── 📄 03-segment-tree.md
│   │   └── 📄 04-fenwick-tree.md
│   ├── 📂 04-graph/             # 图论
│   │   ├── 📄 01-graph-basics.md
│   │   ├── 📄 02-bfs-dfs.md
│   │   ├── 📄 03-shortest-path.md
│   │   ├── 📄 04-mst.md
│   │   └── 📄 05-topological-sort.md
│   ├── 📂 05-dp/                # 动态规划
│   │   ├── 📄 01-dp-basics.md
│   │   ├── 📄 02-linear-dp.md
│   │   ├── 📄 03-interval-dp.md
│   │   ├── 📄 04-tree-dp.md
│   │   └── 📄 05-state-compression.md
│   └── 📂 06-topics/            # 其他专题
│       ├── 📄 01-greedy.md
│       ├── 📄 02-bitwise.md
│       ├── 📄 03-math.md
│       └── 📄 04-string-algo.md
│
├── 📂 solutions/                # 题解代码
│   ├── 📂 leetcode/             # LeetCode 题解
│   │   ├── 📂 easy/
│   │   ├── 📂 medium/
│   │   └── 📂 hard/
│   ├── 📂 acwing/               # AcWing 题解
│   └── 📂 codeforces/           # Codeforces 题解
│
├── 📂 templates/                # 代码模板
│   ├── 📄 template-python.py
│   ├── 📄 template-go.go
│   ├── 📄 template-cpp.cpp
│   └── 📄 template-java.java
│
├── 📂 utils/                    # 工具脚本
│   ├── 📄 generate-readme.py    # 自动生成 README
│   ├── 📄 problem-tracker.py    # 刷题进度追踪
│   └── 📄 code-stats.py         # 代码统计
│
├── 📂 contests/                 # 比赛记录
│   ├── 📂 weekly-contest/
│   └── 📂 biweekly-contest/
│
├── 📄 README.md                 # 本文件
├── 📄 PROGRESS.md               # 详细进度记录
├── 📄 ROADMAP.md                # 学习计划
└── 📄 LICENSE

🔥 高频题目 | Hot Questions

数组与字符串

题目 难度 标签 题解
1. 两数之和 🟢 哈希表 Python
15. 三数之和 🟡 双指针 Python
53. 最大子数组和 🟡 DP Python
56. 合并区间 🟡 排序 Python

链表

题目 难度 标签 题解
21. 合并两个有序链表 🟢 递归 Python
206. 反转链表 🟢 迭代 Python
23. 合并K个升序链表 🔴 优先队列 Python

树与二叉树

题目 难度 标签 题解
104. 二叉树的最大深度 🟢 DFS Python
102. 二叉树的层序遍历 🟡 BFS Python
124. 二叉树中的最大路径和 🔴 DFS Python

动态规划

题目 难度 标签 题解
70. 爬楼梯 🟢 DP Python
300. 最长递增子序列 🟡 DP + 二分 Python
72. 编辑距离 🔴 DP Python

📝 学习路线 | Learning Path

第一阶段:基础夯实 (1-2 个月)

  • 数组、链表、栈、队列
  • 哈希表原理与应用
  • 树与二叉树遍历
  • 基础排序算法
  • 二分查找与变体

第二阶段:算法进阶 (2-3 个月)

  • 递归与回溯算法
  • 双指针与滑动窗口
  • BFS 与 DFS
  • 动态规划入门
  • 贪心算法

第三阶段:高级主题 (3-4 个月)

  • 高级数据结构
  • 图论算法
  • 动态规划进阶
  • 字符串算法
  • 系统设计基础

🛠️ 工具脚本 | Tools

自动生成题解索引

python utils/generate-readme.py

刷题进度追踪

python utils/problem-tracker.py --update

代码统计

python utils/code-stats.py

📖 推荐资源 | Resources

书籍

  • 《算法导论》(CLRS)
  • 《剑指 Offer》
  • 《编程珠玑》
  • 《算法竞赛入门经典》

在线资源


🤝 参与贡献 | Contributing

欢迎提交 Issue 和 Pull Request:

  1. 发现题目分类错误?请提交 Issue
  2. 有更优解法?欢迎 PR
  3. 补充题目解析?请遵循文档格式

📄 许可证 | License

MIT License


⬆ 返回顶部

Keep Coding, Keep Learning! 💪

About

系统化的算法学习笔记,涵盖数据结构与算法核心知识点,配合 LeetCode 题解

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors