Convert roadmap.org problems from list items to subheadings

Problems are now ** TODO headings with proper org tags (:easy:,
:medium:, :hard:) instead of checkbox list items. This enables
org-mode filtering by difficulty, proper subtree folding, and
automatic cookie updates on toggle.
This commit is contained in:
2026-06-01 02:22:17 +08:00
parent 142f2469ec
commit 7371b2617d
2 changed files with 995 additions and 995 deletions
+5 -5
View File
@@ -224,13 +224,13 @@ function buildOrg(sortedNodes, problemsByTopic) {
const tag = difficultyTag(p.difficulty);
const lcUrl = `${LEETCODE_BASE}${p.link}`;
const num = p.code.split("-")[0];
lines.push(`- [ ] TODO ${num}. ${p.name} :${tag}:`);
lines.push(` - [ ] TODO Python: [[${GITHUB_SOLUTIONS}python/${p.code}.py][${p.code}.py]]`);
lines.push(` - [ ] TODO C++: [[${GITHUB_SOLUTIONS}cpp/${p.code}.cpp][${p.code}.cpp]]`);
lines.push(` - LeetCode: [[${lcUrl}][${p.link}]]`);
lines.push(`** TODO ${num}. ${p.name} :${tag}:`);
lines.push(`- Python: [[${GITHUB_SOLUTIONS}python/${p.code}.py][${p.code}.py]]`);
lines.push(`- C++: [[${GITHUB_SOLUTIONS}cpp/${p.code}.cpp][${p.code}.cpp]]`);
lines.push(`- LeetCode: [[${lcUrl}][${p.link}]]`);
if (p.video)
lines.push(
` - Video: [[https://youtube.com/watch?v=${p.video}][explanation]]`
`- Video: [[https://youtube.com/watch?v=${p.video}][explanation]]`
);
}
lines.push("");
+990 -990
View File
File diff suppressed because it is too large Load Diff