Skip to content

Commit 9b34c7d

Browse files
committed
docs: update pattern documentation to two-path learning structure
- Add Intuition and Templates learning paths for each pattern - Update BacktrackingExploration from "coming soon" to available - Add LinkedListInPlaceReversal and MonotonicStack as upcoming patterns - Update README.md and README_zh-TW.md with new table format
1 parent bda851f commit 9b34c7d

File tree

2 files changed

+30
-16
lines changed

2 files changed

+30
-16
lines changed

README.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -343,16 +343,23 @@ Our **AI Ontology Analyzer** processes the entire knowledge graph — API Kernel
343343

344344
> **"Don't memorize 200 problems. Master 10 patterns."**
345345
346-
Each API Kernel has a dedicated pattern guide with **base template**, **variations**, and **copy-paste ready code**.
347-
348-
| API Kernel | Guide | Problems |
349-
|:-----------|:-----:|:---------|
350-
| `SubstringSlidingWindow` | [📖](docs/patterns/sliding_window.md) | LeetCode 3, 76, 159, 209, 340, 438, 567 |
351-
| `TwoPointersTraversal` | [📖](docs/patterns/two_pointers.md) | LeetCode 1, 11, 15, 16, 21, 26, 27, 75, 88, 125, 141, 142, 167, 202, 283, 680, 876 |
352-
| `GridBFSMultiSource` | *soon* | LeetCode 994, 286, 542 |
353-
| `BacktrackingExploration` | *soon* | LeetCode 51, 52, 46, 78 |
354-
| `KWayMerge` | *soon* | LeetCode 23, 21, 88 |
355-
| `BinarySearchBoundary` | *soon* | LeetCode 4, 33, 34, 35 |
346+
Each pattern provides **two learning paths**:
347+
348+
| Path | Purpose | Best For |
349+
|:-----|:--------|:---------|
350+
| 💡 **Intuition** | Understand the "why" through stories and visual explanations | First-time learners, building mental models |
351+
| 🛠️ **Templates** | Production-ready implementations with problem-specific variations | Interview prep, quick reference |
352+
353+
| API Kernel | Learning Resources | Problems |
354+
|:-----------|:-------------------|:---------|
355+
| `SubstringSlidingWindow` | 💡 [Intuition](docs/patterns/sliding_window/intuition.md) · 🛠️ [Templates](docs/patterns/sliding_window/templates.md) | LeetCode 3, 76, 159, 209, 340, 438, 567 |
356+
| `TwoPointersTraversal` | 💡 [Intuition](docs/patterns/two_pointers/intuition.md) · 🛠️ [Templates](docs/patterns/two_pointers/templates.md) | LeetCode 1, 11, 15, 16, 21, 26, 27, 75, 88, 125, 141, 142, 167, 202, 283, 680, 876 |
357+
| `BacktrackingExploration` | 💡 [Intuition](docs/patterns/backtracking_exploration/intuition.md) · 🛠️ [Templates](docs/patterns/backtracking_exploration/templates.md) | LeetCode 39, 40, 46, 47, 51, 77, 78, 79, 90, 93, 131, 216 |
358+
| `GridBFSMultiSource` | *coming soon* | LeetCode 994, 286, 542 |
359+
| `KWayMerge` | *coming soon* | LeetCode 23, 21, 88 |
360+
| `BinarySearchBoundary` | *coming soon* | LeetCode 4, 33, 34, 35 |
361+
| `LinkedListInPlaceReversal` | *coming soon* | LeetCode 25, 206, 92 |
362+
| `MonotonicStack` | *coming soon* | LeetCode 84, 85, 496 |
356363

357364
👉 **[View All Pattern Guides →](docs/patterns/README.md)**
358365

README_zh-TW.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,16 +343,23 @@ scripts\run_tests.bat 0001_two_sum
343343

344344
> **「不要死背 200 道題。掌握 10 個模式。」**
345345
346-
每個 API 核心都有專屬的模式指南,包含**基礎模板****變體****可直接複製的程式碼**
346+
每個模式提供**兩條學習路徑**
347347

348-
| API 核心 | 指南 | 題目 |
349-
|:---------|:----:|:-----|
350-
| `SubstringSlidingWindow` | [📖](docs/patterns/sliding_window.md) | LeetCode 3, 76, 159, 209, 340, 438, 567 |
351-
| `TwoPointersTraversal` | [📖](docs/patterns/two_pointers.md) | LeetCode 1, 11, 15, 16, 21, 26, 27, 75, 88, 125, 141, 142, 167, 202, 283, 680, 876 |
348+
| 路徑 | 目的 | 適合對象 |
349+
|:-----|:-----|:---------|
350+
| 💡 **直覺理解** | 透過故事和視覺化解釋理解「為什麼」 | 初學者、建立心智模型 |
351+
| 🛠️ **模板** | 生產級實作與問題專屬變體 | 面試準備、快速參考 |
352+
353+
| API 核心 | 學習資源 | 題目 |
354+
|:---------|:---------|:-----|
355+
| `SubstringSlidingWindow` | 💡 [直覺理解](docs/patterns/sliding_window/intuition.md) · 🛠️ [模板](docs/patterns/sliding_window/templates.md) | LeetCode 3, 76, 159, 209, 340, 438, 567 |
356+
| `TwoPointersTraversal` | 💡 [直覺理解](docs/patterns/two_pointers/intuition.md) · 🛠️ [模板](docs/patterns/two_pointers/templates.md) | LeetCode 1, 11, 15, 16, 21, 26, 27, 75, 88, 125, 141, 142, 167, 202, 283, 680, 876 |
357+
| `BacktrackingExploration` | 💡 [直覺理解](docs/patterns/backtracking_exploration/intuition.md) · 🛠️ [模板](docs/patterns/backtracking_exploration/templates.md) | LeetCode 39, 40, 46, 47, 51, 77, 78, 79, 90, 93, 131, 216 |
352358
| `GridBFSMultiSource` | *即將推出* | LeetCode 994, 286, 542 |
353-
| `BacktrackingExploration` | *即將推出* | LeetCode 51, 52, 46, 78 |
354359
| `KWayMerge` | *即將推出* | LeetCode 23, 21, 88 |
355360
| `BinarySearchBoundary` | *即將推出* | LeetCode 4, 33, 34, 35 |
361+
| `LinkedListInPlaceReversal` | *即將推出* | LeetCode 25, 206, 92 |
362+
| `MonotonicStack` | *即將推出* | LeetCode 84, 85, 496 |
356363

357364
👉 **[查看所有模式指南 →](docs/patterns/README.md)**
358365

0 commit comments

Comments
 (0)