“The greedy algorithm is a good algorithm to talk about because it is easy to understand, and it is easy to implement, but it is a perfect example of a case where you have to prove that it is correct.” – Thomas H. Cormen
2025-11-171419 字3 分钟
⏱️ 第七讲 · 时间复杂度分析
⏱️ 算法时间复杂度速查手册 一页掌握核心,助你根据输入规模,秒选算法思路!
[橘调蜜桃色]
2025-11-0718273 字37 分钟
🧠 第五讲 · 动态规划
2025-10-2213367 字27 分钟
🧱 第二讲 · 数据结构
“Programs must be written for people to read, and only incidentally for machines to execute.” —— Harold Abelson
本笔记为 第二讲 · 数据结构 的 C++ 模板与题解,涵盖单、双链表,栈与队列,单调栈与单调队列,KMP,Trie 树,并查集,堆,哈希表,以及常用的 C++ STL等核心内容。 旨在帮助学习者系统掌握各类数据结构的特性与应用场景,为算法设计打下坚实的实现基础。
2025-10-2114712 字30 分钟
🕸️ 第三讲 · 搜索与图论
“The question of whether a computer can think is no more interesting than the question of whether a submarine can swim.” – Edsger W. Dijkstra
2025-10-216239 字13 分钟
🧩 第一讲 · 基础算法
“First, solve the problem. Then, write the code.” —— John Johnson
本笔记为 第一讲 · 基础算法 的 C++ 模板与题解,涵盖排序、二分查找、高精度计算、前缀和与差分、双指针算法、位运算、离散化、区间合并等核心内容。旨在为学习者提供一个清晰、实用、系统的学习与复习参考。
2025-10-2117120 字35 分钟
🧮 第四讲 · 数学知识
“Mathematics is the queen of the sciences—and number theory is the queen of mathematics.” – Carl Friedrich Gauss
本笔记为 第四讲 · 数学知识 的 C++ 模板与题解,内容涵盖质数、约数、欧拉函数、快速幂、扩展欧几里得、组合计数、容斥原理与博弈论等算法竞赛中的核心数学工具。