Add TODO checkboxes to Python/C++ sub-headings

- roadmap.org: *** TODO Python and *** TODO C++ with [/] cookie
  on each problem heading for [0/2] progress tracking
- Note files now have TODO Approach, TODO Python, TODO C++
  sections for structured problem solving
This commit is contained in:
2026-06-01 02:39:53 +08:00
parent eabb433ec6
commit 956c2b2c88
202 changed files with 2401 additions and 601 deletions
+3 -3
View File
@@ -234,10 +234,10 @@ function buildOrg(sortedNodes, problemsByTopic) {
const lcUrl = `${LEETCODE_BASE}${p.link}`;
const num = p.code.split("-")[0];
const notesFile = `${notesRoot}/${slug}/${p.code}.org`;
lines.push(`** TODO ${num}. ${p.name} :${tag}:`);
lines.push(`*** Python`);
lines.push(`** TODO ${num}. ${p.name} :${tag}: [/]`);
lines.push(`*** TODO Python`);
lines.push(`- [[${GITHUB_SOLUTIONS}python/${p.code}.py][${p.code}.py]]`);
lines.push(`*** C++`);
lines.push(`*** TODO C++`);
lines.push(`- [[${GITHUB_SOLUTIONS}cpp/${p.code}.cpp][${p.code}.cpp]]`);
lines.push(`- LeetCode: [[${lcUrl}][${p.link}]]`);
if (p.video)
+597 -597
View File
File diff suppressed because it is too large Load Diff
+10 -1
View File
@@ -24,7 +24,7 @@ for (const line of roadmap.split("\n")) {
}
const problemMatch = line.match(
/^\*\* TODO (\d+)\. (.+?) :(easy|medium|hard):$/
/^\*\* TODO (\d+)\. (.+?) :(easy|medium|hard): \[\/\]$/
);
if (problemMatch) {
const [, num, name, diff] = problemMatch;
@@ -43,6 +43,15 @@ for (const line of roadmap.split("\n")) {
:NEETCODE: [[${relPath}][Roadmap]]
:END:
** TODO Approach
Write your approach here.
** TODO Python
#+begin_src python
#+end_src
** TODO C++
#+begin_src cpp
#+end_src