Skip to content

精简项目清单并补全算法手册(含矩阵与关键基础操作)#3

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/optimize-algorithm-manual
Draft

精简项目清单并补全算法手册(含矩阵与关键基础操作)#3
Copilot wants to merge 2 commits intomainfrom
copilot/optimize-algorithm-manual

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 28, 2026

本次变更聚焦于文档结构优化:移除原第 2、3 个项目,保留核心“算法手册”。同时补全手册内容,为题目增加“解题思路 + 对应算法”,并补充矩阵及其他高频易错基础操作。

  • 项目清单精简

    • 删除原第二、第三个项目项,README 仅保留“算法手册”作为核心入口。
  • 算法手册补全

    • 按题型扩展题目覆盖:数组/双指针、滑动窗口、二分、链表、树、回溯、动态规划、图论、单调栈/堆。
    • 每道题统一补充两类信息:
      • 一句话解题思路
      • 核心算法(如哈希、双指针、BFS/DFS、DP、Dijkstra、单调栈等)
  • 关键基础操作补充(重点)

    • 新增“简单但麻烦”的实用模板与要点:
      • 矩阵方向遍历、边界判断、旋转、螺旋遍历
      • 一维/二维前缀和、差分
      • 快速幂、位运算、字符串处理细节

示例(文档新增内容形态):

3. 矩阵旋转(顺时针 90°)
思路:先转置,再每行反转。
适用:n x n 方阵原地旋转。

5. 前缀和(数组 / 二维矩阵)
- 一维:sum(l..r) = pre[r] - pre[l-1]
- 二维:子矩阵和使用容斥 A - B - C + D

📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Copilot AI changed the title [WIP] Update algorithm manual with complete problems and solutions 精简项目清单并补全算法手册(含矩阵与关键基础操作) Mar 28, 2026
Copilot AI requested a review from kunlunlu1 March 28, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants