Leetcode_problems: merge feat/upgrade into main

AL
2mo ago
+1837-89

This PR brings the feat/upgrade work into main for Leetcode_problems — 9 commits, 23 files changed, 1837 insertions(+), 89 deletions(-).

What's in here

  • chore: keep internal growth/marketing notes out of the repo
  • docs: star-growth hook, SEO page titles, lessons index, growth kit
  • docs: trending polish — pattern index, live demo URL, banner prompt, FUNDING
  • chore: community health, dependency bots, pre-commit, banner brief
  • feat: gated docs deploy + AI explanation/review workflows
  • ci: real compile/lint gates replacing the vacuous g++ CI
  • feat: add C++/SQL/docs tooling configs
  • feat: add progress generator and reconcile stats from a single source
  • chore: relicense to MIT and reconcile README stats

Files

23 files changed, 1837 insertions(+), 89 deletions(-)

šŸ¤– Generated with Claude Code


Summary by cubic

Modernizes the archive: re-licensed to MIT, progress stats now generated from a single source instead of hand-maintained tables, and strict CI that actually compiles and lints the snippets. A generated mkdocs site makes all 173 problems searchable.

  • New Features

    • scripts/generate_progress.py reconciles unique slugs vs total submission files and updates the README stats block plus docs/progress.json.
    • mkdocs-material site with per-problem pages, verdict history, and language tabs; deploy to Cloudflare Pages is gated on secrets.
    • Automated explanation generator writes EXPLANATION.md for accepted solutions, comparing them against the recorded failed attempts, and opens a PR with the changes.
    • Exact-match SEO page titles via scripts/problem_numbers.json.
    • README overhauled with dynamic badges, Lessons and pattern indexes, and corrected SQL labeling.
    • LICENSE adds a LeetCode IP note; added FUNDING, SECURITY policy, and a solution issue template.
  • CI/Tooling

    • Real C++ syntax gate: injects #include <bits/stdc++.h> + using namespace std; then runs g++ -std=c++20 -fsyntax-only.
    • clang-format + cpp-linter for C++; sqlfluff lint for .oraclesql and .mysql.
    • Progress check (generate_progress.py --check) and mkdocs build --strict enforced in CI.
    • Pre-commit mirrors the gates; added .clang-format, .sqlfluff, .gitattributes, .gitignore.
    • Dependabot for github-actions and pip docs deps; CodeRabbit and Claude PR review gated on secrets.