Problem Note Contract¶
This page is for contributors and maintainers, not first-time learners.
Use it when you are writing or revising a solved note under practice/ladders/.
Required Fields¶
TitleJudge / sourceOriginal URLSecondary topicsDifficultyStatus:todo,attempted,solved,reviewedSolution file
Derived Field¶
Main topic: generated from the note pathpractice/ladders/<area>/<subtopic>/...and the canonical title indata/topic-resources.json
Optional Fields¶
SubtypeMirror / English URLSource contestAlternate solution variants
Suggested Section Order¶
Why practice thisRecognition CueProblem-Specific TransformationCore IdeaComplexityPitfalls / Judge NotesReusable PatternSolutions
Writing Rules¶
- solved notes should emphasize the delta from the topic page, not reteach the entire topic from scratch
Recognition Cueshould help the reader notice the right pattern next timeProblem-Specific Transformationshould explain how the raw statement was rewritten into that patternReusable Patternshould point back to the best internal topic, template, and notebook refreshers
Maintenance Check¶
When a note changes enough to affect catalogs or docs, rerun:
python3 scripts/generate_problem_catalog.py --validate-only
python3 scripts/generate_problem_catalog.py
python3 scripts/build_site_docs.py
mkdocs build --strict