66
77[ ![ Python] ( https://img.shields.io/badge/Python-3.8+-blue.svg )] ( https://python.org )
88[ ![ LeetCode] ( https://img.shields.io/badge/LeetCode-Hot%20100-orange.svg )] ( https://leetcode.cn/studyplan/top-100-liked/ )
9+ [ ![ AI Coach] ( https://img.shields.io/badge/AI-刷题助手-blueviolet.svg )] ( #-ai-刷题助手 )
910[ ![ License] ( https://img.shields.io/badge/License-MIT-green.svg )] ( LICENSE )
1011
11- [ 开始学习] ( #-学习路线 ) • [ 题目列表] ( #-leetcode-hot-100 ) • [ 在线练习 ] ( https://leetcode.cn/ )
12+ [ 开始学习] ( #-学习路线 ) • [ 题目列表] ( #-leetcode-hot-100 ) • [ 在线练习场 ] ( playground.html ) • [ AI 助手 ] ( #-ai-刷题助手 )
1213
1314</div >
1415
1819
1920本项目专为** 计算机专业求职者** 设计,帮助你从 Python 零基础到能够独立解决 LeetCode 中等难度题目,顺利通过企业笔试机试第一关。
2021
22+ ### ✨ 核心亮点
23+
24+ - 📚 ** 系统学习路线** — 4 阶段从 Python 基础到 LeetCode 实战
25+ - 🖥️ ** 在线练习场** — 内置 36 道 Hot 100 题目,浏览器直接运行 Python
26+ - 🤖 ** AI 刷题助手** — 内置 AI 教练,自动读取题目和代码,给出诊断和提示
27+ - 📝 ** 完整题解** — LeetCode Hot 100 全部题解
28+
2129### 🎯 目标用户
2230
2331- ✅ Python 语言零基础或仅掌握基础语法
3038
3139---
3240
41+ ## 🤖 AI 刷题助手
42+
43+ > ** 全栈内置,免费使用,无需配置** — 点击练习场右下角 🤖 按钮即可体验
44+
45+ AI 刷题助手是本项目最核心的特色功能。它会** 自动读取你当前正在做的题目和编写的代码** ,然后以教学式方式帮你诊断问题、给出提示,而不是直接给答案。
46+
47+ ### 功能预览
48+
49+ <div align =" center " >
50+
51+ | 练习场 & AI 按钮 | AI 面板 & 快捷操作 | AI 上下文诊断 |
52+ | :---:| :---:| :---:|
53+ | ![ 练习场] ( assets/images/screenshots/ai-fab-button.png ) | ![ AI面板] ( assets/images/screenshots/ai-panel-open.png ) | ![ AI诊断] ( assets/images/screenshots/ai-context-response.png ) |
54+ | 右下角 🤖 浮动按钮 | 5 种快捷操作一键触发 | 精准识别「两数之和」并给出思路 |
55+
56+ </div >
57+
58+ ### 快捷操作
59+
60+ | 按钮 | 功能 |
61+ | ------| ------|
62+ | 🔍 帮我看看代码 | 诊断代码错误,指出问题根源 |
63+ | 💡 给个提示 | 不给答案,只给思路方向 |
64+ | 📖 解释题目 | 用通俗语言重新解释题意 |
65+ | 🐛 分析报错 | 根据报错信息定位原因 |
66+ | ✨ 优化代码 | 提供更优解法和改进建议 |
67+
68+ ### 使用方式
69+
70+ 1 . 打开 [ 在线练习场] ( playground.html ) ,选择一道题目
71+ 2 . 点击右下角 🤖 按钮,AI 面板从右侧滑出
72+ 3 . 点击快捷按钮或输入自定义问题
73+ 4 . AI 自动注入当前题目 + 你的代码作为上下文,给出针对性回答
74+
75+ > 💡 ** 默认免费可用** ,内置 OpenRouter 免费 API。如需使用自己的 API,点击齿轮图标 ⚙️ 即可配置。
76+
77+ ---
78+
3379## 🗺️ 学习路线
3480
3581```
253299zero2Leetcode/
254300├── README.md # 项目说明
255301├── index.html # 🌐 前端学习平台入口
302+ ├── playground.html # 🖥️ 在线练习场(含 AI 助手)
256303├── requirements.txt # Python 依赖
257304│
305+ ├── assets/
306+ │ ├── css/
307+ │ │ ├── style.css # 全站设计系统
308+ │ │ └── playground.css # 练习场 + AI 助手样式
309+ │ ├── js/
310+ │ │ ├── playground.js # 练习场核心逻辑
311+ │ │ └── ai-assistant.js # 🤖 AI 刷题助手模块
312+ │ └── images/ # 静态资源
313+ │
258314├── 00_python_basics/ # Python 基础
259315├── 01_data_structures/ # 数据结构
260316├── 02_algorithms/ # 核心算法
261- ├── 03_leetcode_practice/ # LeetCode 实战
262- │ ├── hash/ # 哈希表
263- │ ├── two_pointers/ # 双指针
264- │ ├── sliding_window/ # 滑动窗口
265- │ ├── stack/ # 栈
266- │ ├── linked_list/ # 链表
267- │ ├── tree/ # 树
268- │ ├── graph/ # 图
269- │ ├── backtrack/ # 回溯
270- │ ├── binary_search/ # 二分查找
271- │ ├── dp/ # 动态规划
272- │ ├── greedy/ # 贪心
273- │ ├── heap/ # 堆
274- │ ├── matrix/ # 矩阵
275- │ └── other/ # 其他技巧
276- │
277- ├── docs/ # 学习文档
278- └── assets/ # 前端静态资源
317+ └── 03_leetcode_practice/ # LeetCode 实战
318+ ├── hash/ # 哈希表
319+ ├── two_pointers/ # 双指针
320+ ├── sliding_window/ # 滑动窗口
321+ ├── stack/ # 栈
322+ ├── linked_list/ # 链表
323+ ├── tree/ # 树
324+ ├── graph/ # 图
325+ ├── backtrack/ # 回溯
326+ ├── binary_search/ # 二分查找
327+ ├── dp/ # 动态规划
328+ ├── greedy/ # 贪心
329+ ├── heap/ # 堆
330+ ├── matrix/ # 矩阵
331+ └── other/ # 其他技巧
279332```
280333
281334---
@@ -286,11 +339,12 @@ zero2Leetcode/
286339
287340``` bash
288341# 克隆项目
289- git clone https://github.com/yourname /zero2Leetcode.git
342+ git clone https://github.com/ranxi2001 /zero2Leetcode.git
290343cd zero2Leetcode
291344
292- # 打开前端学习平台
293- # 直接双击 index.html 或使用 Live Server
345+ # 启动本地服务器,打开练习场
346+ python3 -m http.server 8080
347+ # 浏览器访问 http://localhost:8080/playground.html
294348
295349# 运行 Python 示例
296350python 00_python_basics/01_variables_types/concepts.py
@@ -308,9 +362,10 @@ python 00_python_basics/01_variables_types/concepts.py
308362
3093631 . ** 循序渐进** : 按阶段学习,不要跳跃
3103642 . ** 动手为先** : 每道题先自己尝试 15-30 分钟
311- 3 . ** 理解模板** : 掌握每类题型的解题模板
312- 4 . ** 重复练习** : 做错的题目隔 3-5 天重做
313- 5 . ** 总结归纳** : 建立自己的错题本和模板库
365+ 3 . ** 善用 AI** : 卡住时点 🤖 助手获取提示,而不是直接看答案
366+ 4 . ** 理解模板** : 掌握每类题型的解题模板
367+ 5 . ** 重复练习** : 做错的题目隔 3-5 天重做
368+ 6 . ** 总结归纳** : 建立自己的错题本和模板库
314369
315370---
316371
0 commit comments