Skip to content

Commit 1b5aec6

Browse files
committed
feat(leetcode-sync): integrate LeetCode metadata sync and post-processing pipeline
- Add LeetCode problem metadata synchronization with local caching - Introduce sync_leetcode_data.py with cache validation and refresh options - Store normalized problem data in tools/.cache/leetcode_problems.json - Establish question_id as the single source of truth across the pipeline - Align file naming, API lookup, and post-processing on question_id - Normalize LeetCode references during post-processing - Convert plain text problem mentions into canonical LeetCode URLs - Preserve original text when metadata is unavailable - Automatically attach GitHub solution links when corresponding solutions exist - Decouple external API access from core logic via a stable data layer This change turns LeetCode API usage into infrastructure rather than ad-hoc lookups, enabling reproducible runs, future CI validation, and safe extensibility.
1 parent 64cbbae commit 1b5aec6

17 files changed

+60920
-708
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Thumbs.db
3838

3939
# Debug
4040
*.log
41+
tools/outputs/debug/run_*_regen_*
4142

4243
# Generated failed test cases (from --save-failed)
4344
*_failed_*.in

docs/pages/mindmaps/neetcode_ontology_agent_evolved_en.html

Lines changed: 716 additions & 1 deletion
Large diffs are not rendered by default.

docs/pages/mindmaps/neetcode_ontology_agent_evolved_zh-TW.html

Lines changed: 568 additions & 610 deletions
Large diffs are not rendered by default.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"cached_at": "2025-12-15T17:43:40.099954",
3+
"total_problems": 3778,
4+
"cache_version": "1.0"
5+
}

0 commit comments

Comments
 (0)