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:
@@ -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
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user