Skip to content

feat: add 221 problems and self-updating problem counts - #187

Merged
wislertt merged 4 commits into
mainfrom
add-more-leetcode-problems-2
Aug 31, 2026
Merged

feat: add 221 problems and self-updating problem counts#187
wislertt merged 4 commits into
mainfrom
add-more-leetcode-problems-2

Conversation

@wislertt

@wislertt wislertt commented Aug 31, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add 221 new LeetCode problems: JSON templates plus fully generated practice environments (531 total, up from 307)
  • Make the advertised problem count self-updating via generated markers in README and docs
  • Add four new troubleshooting docs pages
  • Update dependencies

Changes

1. 221 new problems

src/leetcode_py/cli/resources/leetcode/json/problems/, leetcode/

Each new problem ships a JSON template plus the six generated files (README, solution stub, parametrized test suite, helpers, playground, package init), sourced from the NeetCode roadmap expansion and other lists. tags.json5 grows by ~213 lines to register the new problems across the collections, and the generated catalog pages (catalog/all.mdx, catalog/neetcode.mdx) expand accordingly to 531 entries. This batch also removes three unsolvable test cases from the two_sum template (expected [] violates the problem's guarantee of exactly one solution).

2. Generated problem counts in hand-written prose

scripts/gen_catalog.py, README.md, docs/index.mdx, docs/getting-started/why-leetcode-py.mdx

gen_catalog.py now injects the exact problem count (531) into three hand-written files via start/end comment markers, replacing the stale hardcoded "300+". README.md uses HTML comments; the .mdx files use JSX comments since MDX rejects HTML comment syntax. Because bake lint (a pre-commit hook) runs the generator, any count drift now fails CI until the regenerated files are committed, with --check available for verification-only runs.

3. Troubleshooting docs

docs/troubleshooting/, docs/docs.json

Four new pages: unknown-problem, files-already-exist, graphviz-missing, and notebook-cells, plus a reworked troubleshooting index and nav entries.

4. Agent workflow tooling

.claude/skills/, .claude/.dev/, bakefile.py, .mise.toml

Updates to the problem-creation, batch-problem-creation, test-quality-assurance, and update-tags skills; a new .claude/.dev/insert_tag.py helper; the unscrapable problem queue list; and a pinned bakefile install with locked extras.

5. Update dependencies

  • Lockfile churn from dependency refreshes (uv.lock) and 307 regenerated playground.py conversions from the notebook-to-python lint hook.

Test plan

  • bake lint passes (ty, ruff, deptry, actionlint, generated catalog freshness)
  • bake check-consistency passes: generated files match JSON source of truth
  • bake check-test-cases reports 0 problems at or below the 10-case threshold
  • bake p-test passes for the three problems that received additional test cases

Co-Authored-By: Claude <noreply@anthropic.com>
@mintlify

mintlify Bot commented Aug 31, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
leetcode-py 🟢 Ready View Preview Aug 31, 2026, 2:09 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@codecov

codecov Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

wislertt and others added 3 commits August 31, 2026 09:28
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@wislertt wislertt changed the title feat: add leetcode problems and generated problem counts feat: add 221 problems and self-updating problem counts Aug 31, 2026
@sonarqubecloud

Copy link
Copy Markdown

@wislertt
wislertt marked this pull request as ready for review August 31, 2026 02:45
@wislertt
wislertt merged commit e21bbb0 into main Aug 31, 2026
18 checks passed
@wislertt
wislertt deleted the add-more-leetcode-problems-2 branch August 31, 2026 02:45
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants