diff --git a/AGENTS.md b/AGENTS.md index dd9c1fc..2cd7cfc 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -34,6 +34,13 @@ Periodically review this file and suggest improvements to the user if you notice ## Subdirectories - `leetcode/` — NeetCode roadmap extractor (dependency graph + problem list). See `leetcode/AGENTS.md`. +- `org/cpp/dsa/` — LeetCode solution notes, one file per problem, organized by topic (18 folders) + +## LeetCode Workflow +- `leetcode/out/roadmap.org` — tracker only (`**` headings, `g c c` to toggle DONE) +- `org/cpp/dsa//.org` — your notes, solutions, flashcards +- Each links to the other via org file links +- Problem tags (`:easy:`, `:medium:`, `:hard:`) enable filtering with `/ t` ## Active Context diff --git a/leetcode/AGENTS.md b/leetcode/AGENTS.md index 06a75f6..18dedf3 100644 --- a/leetcode/AGENTS.md +++ b/leetcode/AGENTS.md @@ -68,9 +68,28 @@ Arrays & Hashing ## Org-Mode Format Each topic is a `* TODO` heading with a `[/]` cookie for progress. -Problems are `- [ ] TODO` items with difficulty tags (`:easy:`, -`:medium:`, `:hard:`). Python and C++ solution links are nested -`- [ ] TODO` sub-items. LeetCode and video links are plain list items. +Problems are `** TODO` sub-headings with difficulty tags (`:easy:`, +`:medium:`, `:hard:`). Python and C++ solution links are `***` sub-headings +under each problem. Each problem also links to a notes file at +`org/cpp/dsa//.org` for personal solutions and flashcards. + +### Notes Files + +`org/cpp/dsa//.org` — one per NeetCode 150 problem (199 total). +Scaffolded by `scaffold-notes.mjs`. Template: + +```org +* TODO 0217. Contains Duplicate :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0217. Contains Duplicate][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src +``` + +Run `node scaffold-notes.mjs` to create missing note files (skips existing). ## Updating diff --git a/leetcode/extract.mjs b/leetcode/extract.mjs index 1305c9e..e031962 100644 --- a/leetcode/extract.mjs +++ b/leetcode/extract.mjs @@ -207,10 +207,19 @@ function buildOrg(sortedNodes, problemsByTopic) { const difficultyTag = (d) => d === "Easy" ? "easy" : d === "Medium" ? "medium" : "hard"; + const topicSlug = (name) => + name + .toLowerCase() + .replace(/[^a-z0-9]+/g, "-") + .replace(/(^-|-$)/g, ""); + + const notesRoot = "../../org/cpp/dsa"; + for (const node of sortedNodes) { const topicProblems = (problemsByTopic[node.name] || []).filter( (p) => p.neetcode150 ); + const slug = topicSlug(node.name); lines.push(`* TODO ${node.name} [/]`); lines.push(""); @@ -224,14 +233,18 @@ function buildOrg(sortedNodes, problemsByTopic) { const tag = difficultyTag(p.difficulty); 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: [[${GITHUB_SOLUTIONS}python/${p.code}.py][${p.code}.py]]`); - lines.push(`- C++: [[${GITHUB_SOLUTIONS}cpp/${p.code}.cpp][${p.code}.cpp]]`); + lines.push(`*** Python`); + lines.push(`- [[${GITHUB_SOLUTIONS}python/${p.code}.py][${p.code}.py]]`); + lines.push(`*** C++`); + lines.push(`- [[${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]]` ); + lines.push(`- Notes: [[${notesFile}][My Solution]]`); } lines.push(""); } diff --git a/leetcode/out/roadmap.org b/leetcode/out/roadmap.org index 5ddbde2..f93078d 100644 --- a/leetcode/out/roadmap.org +++ b/leetcode/out/roadmap.org @@ -8,1042 +8,1639 @@ Source: [[https://neetcode.io/roadmap][neetcode.io/roadmap]] * TODO Arrays & Hashing [/] ** TODO 0217. Contains Duplicate :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0217-contains-duplicate.py][0217-contains-duplicate.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0217-contains-duplicate.cpp][0217-contains-duplicate.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0217-contains-duplicate.py][0217-contains-duplicate.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0217-contains-duplicate.cpp][0217-contains-duplicate.cpp]] - LeetCode: [[https://leetcode.com/problems/contains-duplicate/][contains-duplicate/]] - Video: [[https://youtube.com/watch?v=3OamzN90kPg][explanation]] +- Notes: [[../../org/cpp/dsa/arrays-hashing/0217-contains-duplicate.org][My Solution]] ** TODO 0242. Valid Anagram :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0242-valid-anagram.py][0242-valid-anagram.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0242-valid-anagram.cpp][0242-valid-anagram.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0242-valid-anagram.py][0242-valid-anagram.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0242-valid-anagram.cpp][0242-valid-anagram.cpp]] - LeetCode: [[https://leetcode.com/problems/valid-anagram/][valid-anagram/]] - Video: [[https://youtube.com/watch?v=9UtInBqnCgA][explanation]] +- Notes: [[../../org/cpp/dsa/arrays-hashing/0242-valid-anagram.org][My Solution]] ** TODO 2678. Number of Senior Citizens :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/2678-number-of-senior-citizens.py][2678-number-of-senior-citizens.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2678-number-of-senior-citizens.cpp][2678-number-of-senior-citizens.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/2678-number-of-senior-citizens.py][2678-number-of-senior-citizens.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2678-number-of-senior-citizens.cpp][2678-number-of-senior-citizens.cpp]] - LeetCode: [[https://leetcode.com/problems/number-of-senior-citizens/][number-of-senior-citizens/]] - Video: [[https://youtube.com/watch?v=l6_wwKzFmVo][explanation]] +- Notes: [[../../org/cpp/dsa/arrays-hashing/2678-number-of-senior-citizens.org][My Solution]] ** TODO 0001. Two Sum :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0001-two-sum.py][0001-two-sum.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0001-two-sum.cpp][0001-two-sum.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0001-two-sum.py][0001-two-sum.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0001-two-sum.cpp][0001-two-sum.cpp]] - LeetCode: [[https://leetcode.com/problems/two-sum/][two-sum/]] - Video: [[https://youtube.com/watch?v=KLlXCFG5TnA][explanation]] +- Notes: [[../../org/cpp/dsa/arrays-hashing/0001-two-sum.org][My Solution]] ** TODO 1408. String Matching in an Array :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1408-string-matching-in-an-array.py][1408-string-matching-in-an-array.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1408-string-matching-in-an-array.cpp][1408-string-matching-in-an-array.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1408-string-matching-in-an-array.py][1408-string-matching-in-an-array.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1408-string-matching-in-an-array.cpp][1408-string-matching-in-an-array.cpp]] - LeetCode: [[https://leetcode.com/problems/string-matching-in-an-array/][string-matching-in-an-array/]] - Video: [[https://youtube.com/watch?v=7K2BjgjCFDo][explanation]] +- Notes: [[../../org/cpp/dsa/arrays-hashing/1408-string-matching-in-an-array.org][My Solution]] ** TODO 0049. Group Anagrams :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0049-group-anagrams.py][0049-group-anagrams.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0049-group-anagrams.cpp][0049-group-anagrams.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0049-group-anagrams.py][0049-group-anagrams.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0049-group-anagrams.cpp][0049-group-anagrams.cpp]] - LeetCode: [[https://leetcode.com/problems/group-anagrams/][group-anagrams/]] - Video: [[https://youtube.com/watch?v=vzdNOK2oB2E][explanation]] +- Notes: [[../../org/cpp/dsa/arrays-hashing/0049-group-anagrams.org][My Solution]] ** TODO 0347. Top K Frequent Elements :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0347-top-k-frequent-elements.py][0347-top-k-frequent-elements.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0347-top-k-frequent-elements.cpp][0347-top-k-frequent-elements.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0347-top-k-frequent-elements.py][0347-top-k-frequent-elements.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0347-top-k-frequent-elements.cpp][0347-top-k-frequent-elements.cpp]] - LeetCode: [[https://leetcode.com/problems/top-k-frequent-elements/][top-k-frequent-elements/]] - Video: [[https://youtube.com/watch?v=YPTqKIgVk-k][explanation]] +- Notes: [[../../org/cpp/dsa/arrays-hashing/0347-top-k-frequent-elements.org][My Solution]] ** TODO 0271. Encode and Decode Strings :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0271-encode-and-decode-strings.py][0271-encode-and-decode-strings.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0271-encode-and-decode-strings.cpp][0271-encode-and-decode-strings.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0271-encode-and-decode-strings.py][0271-encode-and-decode-strings.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0271-encode-and-decode-strings.cpp][0271-encode-and-decode-strings.cpp]] - LeetCode: [[https://leetcode.com/problems/encode-and-decode-strings/][encode-and-decode-strings/]] - Video: [[https://youtube.com/watch?v=B1k_sxOSgv8][explanation]] +- Notes: [[../../org/cpp/dsa/arrays-hashing/0271-encode-and-decode-strings.org][My Solution]] ** TODO 0238. Product of Array Except Self :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0238-product-of-array-except-self.py][0238-product-of-array-except-self.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0238-product-of-array-except-self.cpp][0238-product-of-array-except-self.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0238-product-of-array-except-self.py][0238-product-of-array-except-self.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0238-product-of-array-except-self.cpp][0238-product-of-array-except-self.cpp]] - LeetCode: [[https://leetcode.com/problems/product-of-array-except-self/][product-of-array-except-self/]] - Video: [[https://youtube.com/watch?v=bNvIQI2wAjk][explanation]] +- Notes: [[../../org/cpp/dsa/arrays-hashing/0238-product-of-array-except-self.org][My Solution]] ** TODO 1769. Minimum Number of Operations to Move All Balls to Each Box :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1769-minimum-number-of-operations-to-move-all-balls-to-each-box.py][1769-minimum-number-of-operations-to-move-all-balls-to-each-box.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1769-minimum-number-of-operations-to-move-all-balls-to-each-box.cpp][1769-minimum-number-of-operations-to-move-all-balls-to-each-box.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1769-minimum-number-of-operations-to-move-all-balls-to-each-box.py][1769-minimum-number-of-operations-to-move-all-balls-to-each-box.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1769-minimum-number-of-operations-to-move-all-balls-to-each-box.cpp][1769-minimum-number-of-operations-to-move-all-balls-to-each-box.cpp]] - LeetCode: [[https://leetcode.com/problems/minimum-number-of-operations-to-move-all-balls-to-each-box/][minimum-number-of-operations-to-move-all-balls-to-each-box/]] - Video: [[https://youtube.com/watch?v=ZmH3gHiIqfI][explanation]] +- Notes: [[../../org/cpp/dsa/arrays-hashing/1769-minimum-number-of-operations-to-move-all-balls-to-each-box.org][My Solution]] ** TODO 0036. Valid Sudoku :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0036-valid-sudoku.py][0036-valid-sudoku.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0036-valid-sudoku.cpp][0036-valid-sudoku.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0036-valid-sudoku.py][0036-valid-sudoku.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0036-valid-sudoku.cpp][0036-valid-sudoku.cpp]] - LeetCode: [[https://leetcode.com/problems/valid-sudoku/][valid-sudoku/]] - Video: [[https://youtube.com/watch?v=TjFXEUCMqI8][explanation]] +- Notes: [[../../org/cpp/dsa/arrays-hashing/0036-valid-sudoku.org][My Solution]] ** TODO 0128. Longest Consecutive Sequence :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0128-longest-consecutive-sequence.py][0128-longest-consecutive-sequence.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0128-longest-consecutive-sequence.cpp][0128-longest-consecutive-sequence.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0128-longest-consecutive-sequence.py][0128-longest-consecutive-sequence.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0128-longest-consecutive-sequence.cpp][0128-longest-consecutive-sequence.cpp]] - LeetCode: [[https://leetcode.com/problems/longest-consecutive-sequence/][longest-consecutive-sequence/]] - Video: [[https://youtube.com/watch?v=P6RZZMu_maU][explanation]] +- Notes: [[../../org/cpp/dsa/arrays-hashing/0128-longest-consecutive-sequence.org][My Solution]] * TODO Two Pointers [/] ** TODO 0344. Reverse String :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0344-reverse-string.py][0344-reverse-string.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0344-reverse-string.cpp][0344-reverse-string.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0344-reverse-string.py][0344-reverse-string.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0344-reverse-string.cpp][0344-reverse-string.cpp]] - LeetCode: [[https://leetcode.com/problems/reverse-string/][reverse-string/]] - Video: [[https://youtube.com/watch?v=_d0T_2Lk2qA][explanation]] +- Notes: [[../../org/cpp/dsa/two-pointers/0344-reverse-string.org][My Solution]] ** TODO 0125. Valid Palindrome :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0125-valid-palindrome.py][0125-valid-palindrome.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0125-valid-palindrome.cpp][0125-valid-palindrome.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0125-valid-palindrome.py][0125-valid-palindrome.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0125-valid-palindrome.cpp][0125-valid-palindrome.cpp]] - LeetCode: [[https://leetcode.com/problems/valid-palindrome/][valid-palindrome/]] - Video: [[https://youtube.com/watch?v=jJXJ16kPFWg][explanation]] +- Notes: [[../../org/cpp/dsa/two-pointers/0125-valid-palindrome.org][My Solution]] ** TODO 0167. Two Sum II Input Array Is Sorted :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0167-two-sum-ii-input-array-is-sorted.py][0167-two-sum-ii-input-array-is-sorted.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0167-two-sum-ii-input-array-is-sorted.cpp][0167-two-sum-ii-input-array-is-sorted.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0167-two-sum-ii-input-array-is-sorted.py][0167-two-sum-ii-input-array-is-sorted.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0167-two-sum-ii-input-array-is-sorted.cpp][0167-two-sum-ii-input-array-is-sorted.cpp]] - LeetCode: [[https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/][two-sum-ii-input-array-is-sorted/]] - Video: [[https://youtube.com/watch?v=cQ1Oz4ckceM][explanation]] +- Notes: [[../../org/cpp/dsa/two-pointers/0167-two-sum-ii-input-array-is-sorted.org][My Solution]] ** TODO 0015. 3Sum :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0015-3sum.py][0015-3sum.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0015-3sum.cpp][0015-3sum.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0015-3sum.py][0015-3sum.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0015-3sum.cpp][0015-3sum.cpp]] - LeetCode: [[https://leetcode.com/problems/3sum/][3sum/]] - Video: [[https://youtube.com/watch?v=jzZsG8n2R9A][explanation]] +- Notes: [[../../org/cpp/dsa/two-pointers/0015-3sum.org][My Solution]] ** TODO 0011. Container With Most Water :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0011-container-with-most-water.py][0011-container-with-most-water.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0011-container-with-most-water.cpp][0011-container-with-most-water.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0011-container-with-most-water.py][0011-container-with-most-water.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0011-container-with-most-water.cpp][0011-container-with-most-water.cpp]] - LeetCode: [[https://leetcode.com/problems/container-with-most-water/][container-with-most-water/]] - Video: [[https://youtube.com/watch?v=UuiTKBwPgAo][explanation]] +- Notes: [[../../org/cpp/dsa/two-pointers/0011-container-with-most-water.org][My Solution]] ** TODO 0259. 3Sum Smaller :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0259-3sum-smaller.py][0259-3sum-smaller.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0259-3sum-smaller.cpp][0259-3sum-smaller.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0259-3sum-smaller.py][0259-3sum-smaller.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0259-3sum-smaller.cpp][0259-3sum-smaller.cpp]] - LeetCode: [[https://leetcode.com/problems/3sum-smaller/][3sum-smaller/]] +- Notes: [[../../org/cpp/dsa/two-pointers/0259-3sum-smaller.org][My Solution]] ** TODO 0042. Trapping Rain Water :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0042-trapping-rain-water.py][0042-trapping-rain-water.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0042-trapping-rain-water.cpp][0042-trapping-rain-water.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0042-trapping-rain-water.py][0042-trapping-rain-water.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0042-trapping-rain-water.cpp][0042-trapping-rain-water.cpp]] - LeetCode: [[https://leetcode.com/problems/trapping-rain-water/][trapping-rain-water/]] - Video: [[https://youtube.com/watch?v=ZI2z5pq0TqA][explanation]] +- Notes: [[../../org/cpp/dsa/two-pointers/0042-trapping-rain-water.org][My Solution]] * TODO Binary Search [/] ** TODO 0704. Binary Search :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0704-binary-search.py][0704-binary-search.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0704-binary-search.cpp][0704-binary-search.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0704-binary-search.py][0704-binary-search.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0704-binary-search.cpp][0704-binary-search.cpp]] - LeetCode: [[https://leetcode.com/problems/binary-search/][binary-search/]] - Video: [[https://youtube.com/watch?v=s4DPM8ct1pI][explanation]] +- Notes: [[../../org/cpp/dsa/binary-search/0704-binary-search.org][My Solution]] ** TODO 2300. Successful Pairs of Spells and Potions :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/2300-successful-pairs-of-spells-and-potions.py][2300-successful-pairs-of-spells-and-potions.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2300-successful-pairs-of-spells-and-potions.cpp][2300-successful-pairs-of-spells-and-potions.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/2300-successful-pairs-of-spells-and-potions.py][2300-successful-pairs-of-spells-and-potions.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2300-successful-pairs-of-spells-and-potions.cpp][2300-successful-pairs-of-spells-and-potions.cpp]] - LeetCode: [[https://leetcode.com/problems/successful-pairs-of-spells-and-potions/][successful-pairs-of-spells-and-potions/]] - Video: [[https://youtube.com/watch?v=OKnm5oyAhWg][explanation]] +- Notes: [[../../org/cpp/dsa/binary-search/2300-successful-pairs-of-spells-and-potions.org][My Solution]] ** TODO 0074. Search a 2D Matrix :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0074-search-a-2d-matrix.py][0074-search-a-2d-matrix.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0074-search-a-2d-matrix.cpp][0074-search-a-2d-matrix.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0074-search-a-2d-matrix.py][0074-search-a-2d-matrix.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0074-search-a-2d-matrix.cpp][0074-search-a-2d-matrix.cpp]] - LeetCode: [[https://leetcode.com/problems/search-a-2d-matrix/][search-a-2d-matrix/]] - Video: [[https://youtube.com/watch?v=Ber2pi2C0j0][explanation]] +- Notes: [[../../org/cpp/dsa/binary-search/0074-search-a-2d-matrix.org][My Solution]] ** TODO 0875. Koko Eating Bananas :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0875-koko-eating-bananas.py][0875-koko-eating-bananas.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0875-koko-eating-bananas.cpp][0875-koko-eating-bananas.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0875-koko-eating-bananas.py][0875-koko-eating-bananas.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0875-koko-eating-bananas.cpp][0875-koko-eating-bananas.cpp]] - LeetCode: [[https://leetcode.com/problems/koko-eating-bananas/][koko-eating-bananas/]] - Video: [[https://youtube.com/watch?v=U2SozAs9RzA][explanation]] +- Notes: [[../../org/cpp/dsa/binary-search/0875-koko-eating-bananas.org][My Solution]] ** TODO 0153. Find Minimum In Rotated Sorted Array :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0153-find-minimum-in-rotated-sorted-array.py][0153-find-minimum-in-rotated-sorted-array.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0153-find-minimum-in-rotated-sorted-array.cpp][0153-find-minimum-in-rotated-sorted-array.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0153-find-minimum-in-rotated-sorted-array.py][0153-find-minimum-in-rotated-sorted-array.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0153-find-minimum-in-rotated-sorted-array.cpp][0153-find-minimum-in-rotated-sorted-array.cpp]] - LeetCode: [[https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/][find-minimum-in-rotated-sorted-array/]] - Video: [[https://youtube.com/watch?v=nIVW4P8b1VA][explanation]] +- Notes: [[../../org/cpp/dsa/binary-search/0153-find-minimum-in-rotated-sorted-array.org][My Solution]] ** TODO 0033. Search In Rotated Sorted Array :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0033-search-in-rotated-sorted-array.py][0033-search-in-rotated-sorted-array.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0033-search-in-rotated-sorted-array.cpp][0033-search-in-rotated-sorted-array.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0033-search-in-rotated-sorted-array.py][0033-search-in-rotated-sorted-array.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0033-search-in-rotated-sorted-array.cpp][0033-search-in-rotated-sorted-array.cpp]] - LeetCode: [[https://leetcode.com/problems/search-in-rotated-sorted-array/][search-in-rotated-sorted-array/]] - Video: [[https://youtube.com/watch?v=U8XENwh8Oy8][explanation]] +- Notes: [[../../org/cpp/dsa/binary-search/0033-search-in-rotated-sorted-array.org][My Solution]] ** TODO 0981. Time Based Key Value Store :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0981-time-based-key-value-store.py][0981-time-based-key-value-store.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0981-time-based-key-value-store.cpp][0981-time-based-key-value-store.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0981-time-based-key-value-store.py][0981-time-based-key-value-store.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0981-time-based-key-value-store.cpp][0981-time-based-key-value-store.cpp]] - LeetCode: [[https://leetcode.com/problems/time-based-key-value-store/][time-based-key-value-store/]] - Video: [[https://youtube.com/watch?v=fu2cD_6E8Hw][explanation]] +- Notes: [[../../org/cpp/dsa/binary-search/0981-time-based-key-value-store.org][My Solution]] ** TODO 0719. Find K-th Smallest Pair Distance :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0719-find-k-th-smallest-pair-distance.py][0719-find-k-th-smallest-pair-distance.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0719-find-k-th-smallest-pair-distance.cpp][0719-find-k-th-smallest-pair-distance.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0719-find-k-th-smallest-pair-distance.py][0719-find-k-th-smallest-pair-distance.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0719-find-k-th-smallest-pair-distance.cpp][0719-find-k-th-smallest-pair-distance.cpp]] - LeetCode: [[https://leetcode.com/problems/find-k-th-smallest-pair-distance/][find-k-th-smallest-pair-distance/]] - Video: [[https://youtube.com/watch?v=bQ-QcFKwsZc][explanation]] +- Notes: [[../../org/cpp/dsa/binary-search/0719-find-k-th-smallest-pair-distance.org][My Solution]] ** TODO 0004. Median of Two Sorted Arrays :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0004-median-of-two-sorted-arrays.py][0004-median-of-two-sorted-arrays.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0004-median-of-two-sorted-arrays.cpp][0004-median-of-two-sorted-arrays.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0004-median-of-two-sorted-arrays.py][0004-median-of-two-sorted-arrays.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0004-median-of-two-sorted-arrays.cpp][0004-median-of-two-sorted-arrays.cpp]] - LeetCode: [[https://leetcode.com/problems/median-of-two-sorted-arrays/][median-of-two-sorted-arrays/]] - Video: [[https://youtube.com/watch?v=q6IEA26hvXc][explanation]] +- Notes: [[../../org/cpp/dsa/binary-search/0004-median-of-two-sorted-arrays.org][My Solution]] * TODO Stack [/] ** TODO 0682. Baseball Game :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0682-baseball-game.py][0682-baseball-game.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0682-baseball-game.cpp][0682-baseball-game.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0682-baseball-game.py][0682-baseball-game.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0682-baseball-game.cpp][0682-baseball-game.cpp]] - LeetCode: [[https://leetcode.com/problems/baseball-game/][baseball-game/]] - Video: [[https://youtube.com/watch?v=Id_tqGdsZQI][explanation]] +- Notes: [[../../org/cpp/dsa/stack/0682-baseball-game.org][My Solution]] ** TODO 0020. Valid Parentheses :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0020-valid-parentheses.py][0020-valid-parentheses.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0020-valid-parentheses.cpp][0020-valid-parentheses.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0020-valid-parentheses.py][0020-valid-parentheses.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0020-valid-parentheses.cpp][0020-valid-parentheses.cpp]] - LeetCode: [[https://leetcode.com/problems/valid-parentheses/][valid-parentheses/]] - Video: [[https://youtube.com/watch?v=WTzjTskDFMg][explanation]] +- Notes: [[../../org/cpp/dsa/stack/0020-valid-parentheses.org][My Solution]] ** TODO 1544. Make The String Great :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1544-make-the-string-great.py][1544-make-the-string-great.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1544-make-the-string-great.cpp][1544-make-the-string-great.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1544-make-the-string-great.py][1544-make-the-string-great.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1544-make-the-string-great.cpp][1544-make-the-string-great.cpp]] - LeetCode: [[https://leetcode.com/problems/make-the-string-great/][make-the-string-great/]] - Video: [[https://youtube.com/watch?v=10tBWNjzvtw][explanation]] +- Notes: [[../../org/cpp/dsa/stack/1544-make-the-string-great.org][My Solution]] ** TODO 0155. Min Stack :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0155-min-stack.py][0155-min-stack.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0155-min-stack.cpp][0155-min-stack.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0155-min-stack.py][0155-min-stack.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0155-min-stack.cpp][0155-min-stack.cpp]] - LeetCode: [[https://leetcode.com/problems/min-stack/][min-stack/]] - Video: [[https://youtube.com/watch?v=qkLl7nAwDPo][explanation]] +- Notes: [[../../org/cpp/dsa/stack/0155-min-stack.org][My Solution]] ** TODO 0150. Evaluate Reverse Polish Notation :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0150-evaluate-reverse-polish-notation.py][0150-evaluate-reverse-polish-notation.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0150-evaluate-reverse-polish-notation.cpp][0150-evaluate-reverse-polish-notation.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0150-evaluate-reverse-polish-notation.py][0150-evaluate-reverse-polish-notation.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0150-evaluate-reverse-polish-notation.cpp][0150-evaluate-reverse-polish-notation.cpp]] - LeetCode: [[https://leetcode.com/problems/evaluate-reverse-polish-notation/][evaluate-reverse-polish-notation/]] - Video: [[https://youtube.com/watch?v=iu0082c4HDE][explanation]] +- Notes: [[../../org/cpp/dsa/stack/0150-evaluate-reverse-polish-notation.org][My Solution]] ** TODO 0739. Daily Temperatures :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0739-daily-temperatures.py][0739-daily-temperatures.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0739-daily-temperatures.cpp][0739-daily-temperatures.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0739-daily-temperatures.py][0739-daily-temperatures.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0739-daily-temperatures.cpp][0739-daily-temperatures.cpp]] - LeetCode: [[https://leetcode.com/problems/daily-temperatures/][daily-temperatures/]] - Video: [[https://youtube.com/watch?v=cTBiBSnjO3c][explanation]] +- Notes: [[../../org/cpp/dsa/stack/0739-daily-temperatures.org][My Solution]] ** TODO 0901. Online Stock Span :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0901-online-stock-span.py][0901-online-stock-span.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0901-online-stock-span.cpp][0901-online-stock-span.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0901-online-stock-span.py][0901-online-stock-span.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0901-online-stock-span.cpp][0901-online-stock-span.cpp]] - LeetCode: [[https://leetcode.com/problems/online-stock-span/][online-stock-span/]] - Video: [[https://youtube.com/watch?v=slYh0ZNEqSw][explanation]] +- Notes: [[../../org/cpp/dsa/stack/0901-online-stock-span.org][My Solution]] ** TODO 0853. Car Fleet :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0853-car-fleet.py][0853-car-fleet.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0853-car-fleet.cpp][0853-car-fleet.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0853-car-fleet.py][0853-car-fleet.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0853-car-fleet.cpp][0853-car-fleet.cpp]] - LeetCode: [[https://leetcode.com/problems/car-fleet/][car-fleet/]] - Video: [[https://youtube.com/watch?v=Pr6T-3yB9RM][explanation]] +- Notes: [[../../org/cpp/dsa/stack/0853-car-fleet.org][My Solution]] ** TODO 0084. Largest Rectangle In Histogram :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0084-largest-rectangle-in-histogram.py][0084-largest-rectangle-in-histogram.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0084-largest-rectangle-in-histogram.cpp][0084-largest-rectangle-in-histogram.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0084-largest-rectangle-in-histogram.py][0084-largest-rectangle-in-histogram.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0084-largest-rectangle-in-histogram.cpp][0084-largest-rectangle-in-histogram.cpp]] - LeetCode: [[https://leetcode.com/problems/largest-rectangle-in-histogram/][largest-rectangle-in-histogram/]] - Video: [[https://youtube.com/watch?v=zx5Sw9130L0][explanation]] +- Notes: [[../../org/cpp/dsa/stack/0084-largest-rectangle-in-histogram.org][My Solution]] ** TODO 0726. Number of Atoms :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0726-number-of-atoms.py][0726-number-of-atoms.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0726-number-of-atoms.cpp][0726-number-of-atoms.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0726-number-of-atoms.py][0726-number-of-atoms.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0726-number-of-atoms.cpp][0726-number-of-atoms.cpp]] - LeetCode: [[https://leetcode.com/problems/number-of-atoms/][number-of-atoms/]] - Video: [[https://youtube.com/watch?v=iuK05gGBzJc][explanation]] +- Notes: [[../../org/cpp/dsa/stack/0726-number-of-atoms.org][My Solution]] * TODO Sliding Window [/] ** TODO 0121. Best Time to Buy And Sell Stock :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0121-best-time-to-buy-and-sell-stock.py][0121-best-time-to-buy-and-sell-stock.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0121-best-time-to-buy-and-sell-stock.cpp][0121-best-time-to-buy-and-sell-stock.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0121-best-time-to-buy-and-sell-stock.py][0121-best-time-to-buy-and-sell-stock.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0121-best-time-to-buy-and-sell-stock.cpp][0121-best-time-to-buy-and-sell-stock.cpp]] - LeetCode: [[https://leetcode.com/problems/best-time-to-buy-and-sell-stock/][best-time-to-buy-and-sell-stock/]] - Video: [[https://youtube.com/watch?v=1pkOgXD63yU][explanation]] +- Notes: [[../../org/cpp/dsa/sliding-window/0121-best-time-to-buy-and-sell-stock.org][My Solution]] ** TODO 0003. Longest Substring Without Repeating Characters :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0003-longest-substring-without-repeating-characters.py][0003-longest-substring-without-repeating-characters.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0003-longest-substring-without-repeating-characters.cpp][0003-longest-substring-without-repeating-characters.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0003-longest-substring-without-repeating-characters.py][0003-longest-substring-without-repeating-characters.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0003-longest-substring-without-repeating-characters.cpp][0003-longest-substring-without-repeating-characters.cpp]] - LeetCode: [[https://leetcode.com/problems/longest-substring-without-repeating-characters/][longest-substring-without-repeating-characters/]] - Video: [[https://youtube.com/watch?v=wiGpQwVHdE0][explanation]] +- Notes: [[../../org/cpp/dsa/sliding-window/0003-longest-substring-without-repeating-characters.org][My Solution]] ** TODO 0424. Longest Repeating Character Replacement :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0424-longest-repeating-character-replacement.py][0424-longest-repeating-character-replacement.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0424-longest-repeating-character-replacement.cpp][0424-longest-repeating-character-replacement.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0424-longest-repeating-character-replacement.py][0424-longest-repeating-character-replacement.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0424-longest-repeating-character-replacement.cpp][0424-longest-repeating-character-replacement.cpp]] - LeetCode: [[https://leetcode.com/problems/longest-repeating-character-replacement/][longest-repeating-character-replacement/]] - Video: [[https://youtube.com/watch?v=gqXU1UyA8pk][explanation]] +- Notes: [[../../org/cpp/dsa/sliding-window/0424-longest-repeating-character-replacement.org][My Solution]] ** TODO 0567. Permutation In String :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0567-permutation-in-string.py][0567-permutation-in-string.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0567-permutation-in-string.cpp][0567-permutation-in-string.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0567-permutation-in-string.py][0567-permutation-in-string.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0567-permutation-in-string.cpp][0567-permutation-in-string.cpp]] - LeetCode: [[https://leetcode.com/problems/permutation-in-string/][permutation-in-string/]] - Video: [[https://youtube.com/watch?v=UbyhOgBN834][explanation]] +- Notes: [[../../org/cpp/dsa/sliding-window/0567-permutation-in-string.org][My Solution]] ** TODO 3306. Count of Substrings Containing Every Vowel and K Consonants II :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/3306-count-of-substrings-containing-every-vowel-and-k-consonants-ii.py][3306-count-of-substrings-containing-every-vowel-and-k-consonants-ii.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/3306-count-of-substrings-containing-every-vowel-and-k-consonants-ii.cpp][3306-count-of-substrings-containing-every-vowel-and-k-consonants-ii.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/3306-count-of-substrings-containing-every-vowel-and-k-consonants-ii.py][3306-count-of-substrings-containing-every-vowel-and-k-consonants-ii.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/3306-count-of-substrings-containing-every-vowel-and-k-consonants-ii.cpp][3306-count-of-substrings-containing-every-vowel-and-k-consonants-ii.cpp]] - LeetCode: [[https://leetcode.com/problems/count-of-substrings-containing-every-vowel-and-k-consonants-ii/][count-of-substrings-containing-every-vowel-and-k-consonants-ii/]] - Video: [[https://youtube.com/watch?v=2wANakxRZNo][explanation]] +- Notes: [[../../org/cpp/dsa/sliding-window/3306-count-of-substrings-containing-every-vowel-and-k-consonants-ii.org][My Solution]] ** TODO 0076. Minimum Window Substring :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0076-minimum-window-substring.py][0076-minimum-window-substring.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0076-minimum-window-substring.cpp][0076-minimum-window-substring.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0076-minimum-window-substring.py][0076-minimum-window-substring.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0076-minimum-window-substring.cpp][0076-minimum-window-substring.cpp]] - LeetCode: [[https://leetcode.com/problems/minimum-window-substring/][minimum-window-substring/]] - Video: [[https://youtube.com/watch?v=jSto0O4AJbM][explanation]] +- Notes: [[../../org/cpp/dsa/sliding-window/0076-minimum-window-substring.org][My Solution]] ** TODO 0239. Sliding Window Maximum :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0239-sliding-window-maximum.py][0239-sliding-window-maximum.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0239-sliding-window-maximum.cpp][0239-sliding-window-maximum.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0239-sliding-window-maximum.py][0239-sliding-window-maximum.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0239-sliding-window-maximum.cpp][0239-sliding-window-maximum.cpp]] - LeetCode: [[https://leetcode.com/problems/sliding-window-maximum/][sliding-window-maximum/]] - Video: [[https://youtube.com/watch?v=DfljaUwZsOk][explanation]] +- Notes: [[../../org/cpp/dsa/sliding-window/0239-sliding-window-maximum.org][My Solution]] * TODO Linked List [/] ** TODO 0206. Reverse Linked List :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0206-reverse-linked-list.py][0206-reverse-linked-list.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0206-reverse-linked-list.cpp][0206-reverse-linked-list.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0206-reverse-linked-list.py][0206-reverse-linked-list.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0206-reverse-linked-list.cpp][0206-reverse-linked-list.cpp]] - LeetCode: [[https://leetcode.com/problems/reverse-linked-list/][reverse-linked-list/]] - Video: [[https://youtube.com/watch?v=G0_I-ZF0S38][explanation]] +- Notes: [[../../org/cpp/dsa/linked-list/0206-reverse-linked-list.org][My Solution]] ** TODO 0021. Merge Two Sorted Lists :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0021-merge-two-sorted-lists.py][0021-merge-two-sorted-lists.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0021-merge-two-sorted-lists.cpp][0021-merge-two-sorted-lists.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0021-merge-two-sorted-lists.py][0021-merge-two-sorted-lists.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0021-merge-two-sorted-lists.cpp][0021-merge-two-sorted-lists.cpp]] - LeetCode: [[https://leetcode.com/problems/merge-two-sorted-lists/][merge-two-sorted-lists/]] - Video: [[https://youtube.com/watch?v=XIdigk956u0][explanation]] +- Notes: [[../../org/cpp/dsa/linked-list/0021-merge-two-sorted-lists.org][My Solution]] ** TODO 0141. Linked List Cycle :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0141-linked-list-cycle.py][0141-linked-list-cycle.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0141-linked-list-cycle.cpp][0141-linked-list-cycle.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0141-linked-list-cycle.py][0141-linked-list-cycle.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0141-linked-list-cycle.cpp][0141-linked-list-cycle.cpp]] - LeetCode: [[https://leetcode.com/problems/linked-list-cycle/][linked-list-cycle/]] - Video: [[https://youtube.com/watch?v=gBTe7lFR3vc][explanation]] +- Notes: [[../../org/cpp/dsa/linked-list/0141-linked-list-cycle.org][My Solution]] ** TODO 2487. Remove Nodes From Linked List :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/2487-remove-nodes-from-linked-list.py][2487-remove-nodes-from-linked-list.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2487-remove-nodes-from-linked-list.cpp][2487-remove-nodes-from-linked-list.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/2487-remove-nodes-from-linked-list.py][2487-remove-nodes-from-linked-list.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2487-remove-nodes-from-linked-list.cpp][2487-remove-nodes-from-linked-list.cpp]] - LeetCode: [[https://leetcode.com/problems/remove-nodes-from-linked-list/][remove-nodes-from-linked-list/]] - Video: [[https://youtube.com/watch?v=y783sRTezDg][explanation]] +- Notes: [[../../org/cpp/dsa/linked-list/2487-remove-nodes-from-linked-list.org][My Solution]] ** TODO 0143. Reorder List :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0143-reorder-list.py][0143-reorder-list.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0143-reorder-list.cpp][0143-reorder-list.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0143-reorder-list.py][0143-reorder-list.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0143-reorder-list.cpp][0143-reorder-list.cpp]] - LeetCode: [[https://leetcode.com/problems/reorder-list/][reorder-list/]] - Video: [[https://youtube.com/watch?v=S5bfdUTrKLM][explanation]] +- Notes: [[../../org/cpp/dsa/linked-list/0143-reorder-list.org][My Solution]] ** TODO 0019. Remove Nth Node From End of List :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0019-remove-nth-node-from-end-of-list.py][0019-remove-nth-node-from-end-of-list.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0019-remove-nth-node-from-end-of-list.cpp][0019-remove-nth-node-from-end-of-list.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0019-remove-nth-node-from-end-of-list.py][0019-remove-nth-node-from-end-of-list.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0019-remove-nth-node-from-end-of-list.cpp][0019-remove-nth-node-from-end-of-list.cpp]] - LeetCode: [[https://leetcode.com/problems/remove-nth-node-from-end-of-list/][remove-nth-node-from-end-of-list/]] - Video: [[https://youtube.com/watch?v=XVuQxVej6y8][explanation]] +- Notes: [[../../org/cpp/dsa/linked-list/0019-remove-nth-node-from-end-of-list.org][My Solution]] ** TODO 1721. Swapping Nodes in a Linked List :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1721-swapping-nodes-in-a-linked-list.py][1721-swapping-nodes-in-a-linked-list.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1721-swapping-nodes-in-a-linked-list.cpp][1721-swapping-nodes-in-a-linked-list.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1721-swapping-nodes-in-a-linked-list.py][1721-swapping-nodes-in-a-linked-list.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1721-swapping-nodes-in-a-linked-list.cpp][1721-swapping-nodes-in-a-linked-list.cpp]] - LeetCode: [[https://leetcode.com/problems/swapping-nodes-in-a-linked-list/][swapping-nodes-in-a-linked-list/]] - Video: [[https://youtube.com/watch?v=4LsrgMyQIjQ][explanation]] +- Notes: [[../../org/cpp/dsa/linked-list/1721-swapping-nodes-in-a-linked-list.org][My Solution]] ** TODO 0138. Copy List With Random Pointer :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0138-copy-list-with-random-pointer.py][0138-copy-list-with-random-pointer.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0138-copy-list-with-random-pointer.cpp][0138-copy-list-with-random-pointer.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0138-copy-list-with-random-pointer.py][0138-copy-list-with-random-pointer.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0138-copy-list-with-random-pointer.cpp][0138-copy-list-with-random-pointer.cpp]] - LeetCode: [[https://leetcode.com/problems/copy-list-with-random-pointer/][copy-list-with-random-pointer/]] - Video: [[https://youtube.com/watch?v=5Y2EiZST97Y][explanation]] +- Notes: [[../../org/cpp/dsa/linked-list/0138-copy-list-with-random-pointer.org][My Solution]] ** TODO 1472. Design Browser History :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1472-design-browser-history.py][1472-design-browser-history.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1472-design-browser-history.cpp][1472-design-browser-history.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1472-design-browser-history.py][1472-design-browser-history.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1472-design-browser-history.cpp][1472-design-browser-history.cpp]] - LeetCode: [[https://leetcode.com/problems/design-browser-history/][design-browser-history/]] - Video: [[https://youtube.com/watch?v=i1G-kKnBu8k][explanation]] +- Notes: [[../../org/cpp/dsa/linked-list/1472-design-browser-history.org][My Solution]] ** TODO 0002. Add Two Numbers :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0002-add-two-numbers.py][0002-add-two-numbers.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0002-add-two-numbers.cpp][0002-add-two-numbers.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0002-add-two-numbers.py][0002-add-two-numbers.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0002-add-two-numbers.cpp][0002-add-two-numbers.cpp]] - LeetCode: [[https://leetcode.com/problems/add-two-numbers/][add-two-numbers/]] - Video: [[https://youtube.com/watch?v=wgFPrzTjm7s][explanation]] +- Notes: [[../../org/cpp/dsa/linked-list/0002-add-two-numbers.org][My Solution]] ** TODO 0287. Find The Duplicate Number :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0287-find-the-duplicate-number.py][0287-find-the-duplicate-number.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0287-find-the-duplicate-number.cpp][0287-find-the-duplicate-number.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0287-find-the-duplicate-number.py][0287-find-the-duplicate-number.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0287-find-the-duplicate-number.cpp][0287-find-the-duplicate-number.cpp]] - LeetCode: [[https://leetcode.com/problems/find-the-duplicate-number/][find-the-duplicate-number/]] - Video: [[https://youtube.com/watch?v=wjYnzkAhcNk][explanation]] +- Notes: [[../../org/cpp/dsa/linked-list/0287-find-the-duplicate-number.org][My Solution]] ** TODO 0725. Split Linked List in Parts :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0725-split-linked-list-in-parts.py][0725-split-linked-list-in-parts.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0725-split-linked-list-in-parts.cpp][0725-split-linked-list-in-parts.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0725-split-linked-list-in-parts.py][0725-split-linked-list-in-parts.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0725-split-linked-list-in-parts.cpp][0725-split-linked-list-in-parts.cpp]] - LeetCode: [[https://leetcode.com/problems/split-linked-list-in-parts/][split-linked-list-in-parts/]] - Video: [[https://youtube.com/watch?v=-OTlqdrxrVI][explanation]] +- Notes: [[../../org/cpp/dsa/linked-list/0725-split-linked-list-in-parts.org][My Solution]] ** TODO 0146. LRU Cache :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0146-lru-cache.py][0146-lru-cache.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0146-lru-cache.cpp][0146-lru-cache.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0146-lru-cache.py][0146-lru-cache.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0146-lru-cache.cpp][0146-lru-cache.cpp]] - LeetCode: [[https://leetcode.com/problems/lru-cache/][lru-cache/]] - Video: [[https://youtube.com/watch?v=7ABFKPK2hD4][explanation]] +- Notes: [[../../org/cpp/dsa/linked-list/0146-lru-cache.org][My Solution]] ** TODO 0023. Merge K Sorted Lists :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0023-merge-k-sorted-lists.py][0023-merge-k-sorted-lists.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0023-merge-k-sorted-lists.cpp][0023-merge-k-sorted-lists.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0023-merge-k-sorted-lists.py][0023-merge-k-sorted-lists.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0023-merge-k-sorted-lists.cpp][0023-merge-k-sorted-lists.cpp]] - LeetCode: [[https://leetcode.com/problems/merge-k-sorted-lists/][merge-k-sorted-lists/]] - Video: [[https://youtube.com/watch?v=q5a5OiGbT6Q][explanation]] +- Notes: [[../../org/cpp/dsa/linked-list/0023-merge-k-sorted-lists.org][My Solution]] ** TODO 0025. Reverse Nodes In K Group :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0025-reverse-nodes-in-k-group.py][0025-reverse-nodes-in-k-group.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0025-reverse-nodes-in-k-group.cpp][0025-reverse-nodes-in-k-group.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0025-reverse-nodes-in-k-group.py][0025-reverse-nodes-in-k-group.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0025-reverse-nodes-in-k-group.cpp][0025-reverse-nodes-in-k-group.cpp]] - LeetCode: [[https://leetcode.com/problems/reverse-nodes-in-k-group/][reverse-nodes-in-k-group/]] - Video: [[https://youtube.com/watch?v=1UOPsfP85V4][explanation]] +- Notes: [[../../org/cpp/dsa/linked-list/0025-reverse-nodes-in-k-group.org][My Solution]] * TODO Trees [/] ** TODO 0590. N-ary Tree Postorder Traversal :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0590-n-ary-tree-postorder-traversal.py][0590-n-ary-tree-postorder-traversal.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0590-n-ary-tree-postorder-traversal.cpp][0590-n-ary-tree-postorder-traversal.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0590-n-ary-tree-postorder-traversal.py][0590-n-ary-tree-postorder-traversal.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0590-n-ary-tree-postorder-traversal.cpp][0590-n-ary-tree-postorder-traversal.cpp]] - LeetCode: [[https://leetcode.com/problems/n-ary-tree-postorder-traversal/][n-ary-tree-postorder-traversal/]] - Video: [[https://youtube.com/watch?v=GMUI91_pDmM][explanation]] +- Notes: [[../../org/cpp/dsa/trees/0590-n-ary-tree-postorder-traversal.org][My Solution]] ** TODO 0226. Invert Binary Tree :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0226-invert-binary-tree.py][0226-invert-binary-tree.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0226-invert-binary-tree.cpp][0226-invert-binary-tree.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0226-invert-binary-tree.py][0226-invert-binary-tree.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0226-invert-binary-tree.cpp][0226-invert-binary-tree.cpp]] - LeetCode: [[https://leetcode.com/problems/invert-binary-tree/][invert-binary-tree/]] - Video: [[https://youtube.com/watch?v=OnSn2XEQ4MY][explanation]] +- Notes: [[../../org/cpp/dsa/trees/0226-invert-binary-tree.org][My Solution]] ** TODO 0104. Maximum Depth of Binary Tree :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0104-maximum-depth-of-binary-tree.py][0104-maximum-depth-of-binary-tree.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0104-maximum-depth-of-binary-tree.cpp][0104-maximum-depth-of-binary-tree.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0104-maximum-depth-of-binary-tree.py][0104-maximum-depth-of-binary-tree.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0104-maximum-depth-of-binary-tree.cpp][0104-maximum-depth-of-binary-tree.cpp]] - LeetCode: [[https://leetcode.com/problems/maximum-depth-of-binary-tree/][maximum-depth-of-binary-tree/]] - Video: [[https://youtube.com/watch?v=hTM3phVI6YQ][explanation]] +- Notes: [[../../org/cpp/dsa/trees/0104-maximum-depth-of-binary-tree.org][My Solution]] ** TODO 0543. Diameter of Binary Tree :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0543-diameter-of-binary-tree.py][0543-diameter-of-binary-tree.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0543-diameter-of-binary-tree.cpp][0543-diameter-of-binary-tree.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0543-diameter-of-binary-tree.py][0543-diameter-of-binary-tree.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0543-diameter-of-binary-tree.cpp][0543-diameter-of-binary-tree.cpp]] - LeetCode: [[https://leetcode.com/problems/diameter-of-binary-tree/][diameter-of-binary-tree/]] - Video: [[https://youtube.com/watch?v=K81C31ytOZE][explanation]] +- Notes: [[../../org/cpp/dsa/trees/0543-diameter-of-binary-tree.org][My Solution]] ** TODO 0110. Balanced Binary Tree :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0110-balanced-binary-tree.py][0110-balanced-binary-tree.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0110-balanced-binary-tree.cpp][0110-balanced-binary-tree.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0110-balanced-binary-tree.py][0110-balanced-binary-tree.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0110-balanced-binary-tree.cpp][0110-balanced-binary-tree.cpp]] - LeetCode: [[https://leetcode.com/problems/balanced-binary-tree/][balanced-binary-tree/]] - Video: [[https://youtube.com/watch?v=QfJsau0ItOY][explanation]] +- Notes: [[../../org/cpp/dsa/trees/0110-balanced-binary-tree.org][My Solution]] ** TODO 0100. Same Tree :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0100-same-tree.py][0100-same-tree.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0100-same-tree.cpp][0100-same-tree.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0100-same-tree.py][0100-same-tree.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0100-same-tree.cpp][0100-same-tree.cpp]] - LeetCode: [[https://leetcode.com/problems/same-tree/][same-tree/]] - Video: [[https://youtube.com/watch?v=vRbbcKXCxOw][explanation]] +- Notes: [[../../org/cpp/dsa/trees/0100-same-tree.org][My Solution]] ** TODO 0572. Subtree of Another Tree :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0572-subtree-of-another-tree.py][0572-subtree-of-another-tree.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0572-subtree-of-another-tree.cpp][0572-subtree-of-another-tree.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0572-subtree-of-another-tree.py][0572-subtree-of-another-tree.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0572-subtree-of-another-tree.cpp][0572-subtree-of-another-tree.cpp]] - LeetCode: [[https://leetcode.com/problems/subtree-of-another-tree/][subtree-of-another-tree/]] - Video: [[https://youtube.com/watch?v=E36O5SWp-LE][explanation]] +- Notes: [[../../org/cpp/dsa/trees/0572-subtree-of-another-tree.org][My Solution]] ** TODO 0235. Lowest Common Ancestor of a Binary Search Tree :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0235-lowest-common-ancestor-of-a-binary-search-tree.py][0235-lowest-common-ancestor-of-a-binary-search-tree.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0235-lowest-common-ancestor-of-a-binary-search-tree.cpp][0235-lowest-common-ancestor-of-a-binary-search-tree.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0235-lowest-common-ancestor-of-a-binary-search-tree.py][0235-lowest-common-ancestor-of-a-binary-search-tree.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0235-lowest-common-ancestor-of-a-binary-search-tree.cpp][0235-lowest-common-ancestor-of-a-binary-search-tree.cpp]] - LeetCode: [[https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/][lowest-common-ancestor-of-a-binary-search-tree/]] - Video: [[https://youtube.com/watch?v=gs2LMfuOR9k][explanation]] +- Notes: [[../../org/cpp/dsa/trees/0235-lowest-common-ancestor-of-a-binary-search-tree.org][My Solution]] ** TODO 0102. Binary Tree Level Order Traversal :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0102-binary-tree-level-order-traversal.py][0102-binary-tree-level-order-traversal.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0102-binary-tree-level-order-traversal.cpp][0102-binary-tree-level-order-traversal.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0102-binary-tree-level-order-traversal.py][0102-binary-tree-level-order-traversal.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0102-binary-tree-level-order-traversal.cpp][0102-binary-tree-level-order-traversal.cpp]] - LeetCode: [[https://leetcode.com/problems/binary-tree-level-order-traversal/][binary-tree-level-order-traversal/]] - Video: [[https://youtube.com/watch?v=6ZnyEApgFYg][explanation]] +- Notes: [[../../org/cpp/dsa/trees/0102-binary-tree-level-order-traversal.org][My Solution]] ** TODO 0199. Binary Tree Right Side View :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0199-binary-tree-right-side-view.py][0199-binary-tree-right-side-view.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0199-binary-tree-right-side-view.cpp][0199-binary-tree-right-side-view.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0199-binary-tree-right-side-view.py][0199-binary-tree-right-side-view.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0199-binary-tree-right-side-view.cpp][0199-binary-tree-right-side-view.cpp]] - LeetCode: [[https://leetcode.com/problems/binary-tree-right-side-view/][binary-tree-right-side-view/]] - Video: [[https://youtube.com/watch?v=d4zLyf32e3I][explanation]] +- Notes: [[../../org/cpp/dsa/trees/0199-binary-tree-right-side-view.org][My Solution]] ** TODO 1376. Time Needed to Inform All Employees :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1376-time-needed-to-inform-all-employees.py][1376-time-needed-to-inform-all-employees.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1376-time-needed-to-inform-all-employees.cpp][1376-time-needed-to-inform-all-employees.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1376-time-needed-to-inform-all-employees.py][1376-time-needed-to-inform-all-employees.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1376-time-needed-to-inform-all-employees.cpp][1376-time-needed-to-inform-all-employees.cpp]] - LeetCode: [[https://leetcode.com/problems/time-needed-to-inform-all-employees/][time-needed-to-inform-all-employees/]] - Video: [[https://youtube.com/watch?v=zdBYi0p4L5Q][explanation]] +- Notes: [[../../org/cpp/dsa/trees/1376-time-needed-to-inform-all-employees.org][My Solution]] ** TODO 1448. Count Good Nodes In Binary Tree :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1448-count-good-nodes-in-binary-tree.py][1448-count-good-nodes-in-binary-tree.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1448-count-good-nodes-in-binary-tree.cpp][1448-count-good-nodes-in-binary-tree.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1448-count-good-nodes-in-binary-tree.py][1448-count-good-nodes-in-binary-tree.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1448-count-good-nodes-in-binary-tree.cpp][1448-count-good-nodes-in-binary-tree.cpp]] - LeetCode: [[https://leetcode.com/problems/count-good-nodes-in-binary-tree/][count-good-nodes-in-binary-tree/]] - Video: [[https://youtube.com/watch?v=7cp5imvDzl4][explanation]] +- Notes: [[../../org/cpp/dsa/trees/1448-count-good-nodes-in-binary-tree.org][My Solution]] ** TODO 0098. Validate Binary Search Tree :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0098-validate-binary-search-tree.py][0098-validate-binary-search-tree.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0098-validate-binary-search-tree.cpp][0098-validate-binary-search-tree.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0098-validate-binary-search-tree.py][0098-validate-binary-search-tree.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0098-validate-binary-search-tree.cpp][0098-validate-binary-search-tree.cpp]] - LeetCode: [[https://leetcode.com/problems/validate-binary-search-tree/][validate-binary-search-tree/]] - Video: [[https://youtube.com/watch?v=s6ATEkipzow][explanation]] +- Notes: [[../../org/cpp/dsa/trees/0098-validate-binary-search-tree.org][My Solution]] ** TODO 0230. Kth Smallest Element In a Bst :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0230-kth-smallest-element-in-a-bst.py][0230-kth-smallest-element-in-a-bst.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0230-kth-smallest-element-in-a-bst.cpp][0230-kth-smallest-element-in-a-bst.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0230-kth-smallest-element-in-a-bst.py][0230-kth-smallest-element-in-a-bst.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0230-kth-smallest-element-in-a-bst.cpp][0230-kth-smallest-element-in-a-bst.cpp]] - LeetCode: [[https://leetcode.com/problems/kth-smallest-element-in-a-bst/][kth-smallest-element-in-a-bst/]] - Video: [[https://youtube.com/watch?v=5LUXSvjmGCw][explanation]] +- Notes: [[../../org/cpp/dsa/trees/0230-kth-smallest-element-in-a-bst.org][My Solution]] ** TODO 0105. Construct Binary Tree From Preorder And Inorder Traversal :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0105-construct-binary-tree-from-preorder-and-inorder-traversal.py][0105-construct-binary-tree-from-preorder-and-inorder-traversal.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0105-construct-binary-tree-from-preorder-and-inorder-traversal.cpp][0105-construct-binary-tree-from-preorder-and-inorder-traversal.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0105-construct-binary-tree-from-preorder-and-inorder-traversal.py][0105-construct-binary-tree-from-preorder-and-inorder-traversal.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0105-construct-binary-tree-from-preorder-and-inorder-traversal.cpp][0105-construct-binary-tree-from-preorder-and-inorder-traversal.cpp]] - LeetCode: [[https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/][construct-binary-tree-from-preorder-and-inorder-traversal/]] - Video: [[https://youtube.com/watch?v=ihj4IQGZ2zc][explanation]] +- Notes: [[../../org/cpp/dsa/trees/0105-construct-binary-tree-from-preorder-and-inorder-traversal.org][My Solution]] ** TODO 1028. Recover a Tree From Preorder Traversal :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1028-recover-a-tree-from-preorder-traversal.py][1028-recover-a-tree-from-preorder-traversal.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1028-recover-a-tree-from-preorder-traversal.cpp][1028-recover-a-tree-from-preorder-traversal.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1028-recover-a-tree-from-preorder-traversal.py][1028-recover-a-tree-from-preorder-traversal.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1028-recover-a-tree-from-preorder-traversal.cpp][1028-recover-a-tree-from-preorder-traversal.cpp]] - LeetCode: [[https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/][recover-a-tree-from-preorder-traversal/]] - Video: [[https://youtube.com/watch?v=VroH6J47kIE][explanation]] +- Notes: [[../../org/cpp/dsa/trees/1028-recover-a-tree-from-preorder-traversal.org][My Solution]] ** TODO 0124. Binary Tree Maximum Path Sum :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0124-binary-tree-maximum-path-sum.py][0124-binary-tree-maximum-path-sum.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0124-binary-tree-maximum-path-sum.cpp][0124-binary-tree-maximum-path-sum.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0124-binary-tree-maximum-path-sum.py][0124-binary-tree-maximum-path-sum.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0124-binary-tree-maximum-path-sum.cpp][0124-binary-tree-maximum-path-sum.cpp]] - LeetCode: [[https://leetcode.com/problems/binary-tree-maximum-path-sum/][binary-tree-maximum-path-sum/]] - Video: [[https://youtube.com/watch?v=Hr5cWUld4vU][explanation]] +- Notes: [[../../org/cpp/dsa/trees/0124-binary-tree-maximum-path-sum.org][My Solution]] ** TODO 0297. Serialize And Deserialize Binary Tree :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0297-serialize-and-deserialize-binary-tree.py][0297-serialize-and-deserialize-binary-tree.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0297-serialize-and-deserialize-binary-tree.cpp][0297-serialize-and-deserialize-binary-tree.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0297-serialize-and-deserialize-binary-tree.py][0297-serialize-and-deserialize-binary-tree.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0297-serialize-and-deserialize-binary-tree.cpp][0297-serialize-and-deserialize-binary-tree.cpp]] - LeetCode: [[https://leetcode.com/problems/serialize-and-deserialize-binary-tree/][serialize-and-deserialize-binary-tree/]] - Video: [[https://youtube.com/watch?v=u4JAi2JJhI8][explanation]] +- Notes: [[../../org/cpp/dsa/trees/0297-serialize-and-deserialize-binary-tree.org][My Solution]] * TODO Tries [/] ** TODO 0208. Implement Trie Prefix Tree :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0208-implement-trie-prefix-tree.py][0208-implement-trie-prefix-tree.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0208-implement-trie-prefix-tree.cpp][0208-implement-trie-prefix-tree.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0208-implement-trie-prefix-tree.py][0208-implement-trie-prefix-tree.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0208-implement-trie-prefix-tree.cpp][0208-implement-trie-prefix-tree.cpp]] - LeetCode: [[https://leetcode.com/problems/implement-trie-prefix-tree/][implement-trie-prefix-tree/]] - Video: [[https://youtube.com/watch?v=oobqoCJlHA0][explanation]] +- Notes: [[../../org/cpp/dsa/tries/0208-implement-trie-prefix-tree.org][My Solution]] ** TODO 0211. Design Add And Search Words Data Structure :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0211-design-add-and-search-words-data-structure.py][0211-design-add-and-search-words-data-structure.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0211-design-add-and-search-words-data-structure.cpp][0211-design-add-and-search-words-data-structure.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0211-design-add-and-search-words-data-structure.py][0211-design-add-and-search-words-data-structure.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0211-design-add-and-search-words-data-structure.cpp][0211-design-add-and-search-words-data-structure.cpp]] - LeetCode: [[https://leetcode.com/problems/design-add-and-search-words-data-structure/][design-add-and-search-words-data-structure/]] - Video: [[https://youtube.com/watch?v=BTf05gs_8iU][explanation]] +- Notes: [[../../org/cpp/dsa/tries/0211-design-add-and-search-words-data-structure.org][My Solution]] ** TODO 1166. Design File System :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1166-design-file-system.py][1166-design-file-system.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1166-design-file-system.cpp][1166-design-file-system.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1166-design-file-system.py][1166-design-file-system.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1166-design-file-system.cpp][1166-design-file-system.cpp]] - LeetCode: [[https://leetcode.com/problems/design-file-system/][design-file-system/]] +- Notes: [[../../org/cpp/dsa/tries/1166-design-file-system.org][My Solution]] ** TODO 0212. Word Search II :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0212-word-search-ii.py][0212-word-search-ii.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0212-word-search-ii.cpp][0212-word-search-ii.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0212-word-search-ii.py][0212-word-search-ii.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0212-word-search-ii.cpp][0212-word-search-ii.cpp]] - LeetCode: [[https://leetcode.com/problems/word-search-ii/][word-search-ii/]] - Video: [[https://youtube.com/watch?v=asbcE9mZz_U][explanation]] +- Notes: [[../../org/cpp/dsa/tries/0212-word-search-ii.org][My Solution]] * TODO Heap / Priority Queue [/] ** TODO 0703. Kth Largest Element In a Stream :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0703-kth-largest-element-in-a-stream.py][0703-kth-largest-element-in-a-stream.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0703-kth-largest-element-in-a-stream.cpp][0703-kth-largest-element-in-a-stream.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0703-kth-largest-element-in-a-stream.py][0703-kth-largest-element-in-a-stream.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0703-kth-largest-element-in-a-stream.cpp][0703-kth-largest-element-in-a-stream.cpp]] - LeetCode: [[https://leetcode.com/problems/kth-largest-element-in-a-stream/][kth-largest-element-in-a-stream/]] - Video: [[https://youtube.com/watch?v=hOjcdrqMoQ8][explanation]] +- Notes: [[../../org/cpp/dsa/heap-priority-queue/0703-kth-largest-element-in-a-stream.org][My Solution]] ** TODO 1046. Last Stone Weight :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1046-last-stone-weight.py][1046-last-stone-weight.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1046-last-stone-weight.cpp][1046-last-stone-weight.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1046-last-stone-weight.py][1046-last-stone-weight.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1046-last-stone-weight.cpp][1046-last-stone-weight.cpp]] - LeetCode: [[https://leetcode.com/problems/last-stone-weight/][last-stone-weight/]] - Video: [[https://youtube.com/watch?v=B-QCq79-Vfw][explanation]] +- Notes: [[../../org/cpp/dsa/heap-priority-queue/1046-last-stone-weight.org][My Solution]] ** TODO 0973. K Closest Points to Origin :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0973-k-closest-points-to-origin.py][0973-k-closest-points-to-origin.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0973-k-closest-points-to-origin.cpp][0973-k-closest-points-to-origin.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0973-k-closest-points-to-origin.py][0973-k-closest-points-to-origin.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0973-k-closest-points-to-origin.cpp][0973-k-closest-points-to-origin.cpp]] - LeetCode: [[https://leetcode.com/problems/k-closest-points-to-origin/][k-closest-points-to-origin/]] - Video: [[https://youtube.com/watch?v=rI2EBUEMfTk][explanation]] +- Notes: [[../../org/cpp/dsa/heap-priority-queue/0973-k-closest-points-to-origin.org][My Solution]] ** TODO 0215. Kth Largest Element In An Array :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0215-kth-largest-element-in-an-array.py][0215-kth-largest-element-in-an-array.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0215-kth-largest-element-in-an-array.cpp][0215-kth-largest-element-in-an-array.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0215-kth-largest-element-in-an-array.py][0215-kth-largest-element-in-an-array.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0215-kth-largest-element-in-an-array.cpp][0215-kth-largest-element-in-an-array.cpp]] - LeetCode: [[https://leetcode.com/problems/kth-largest-element-in-an-array/][kth-largest-element-in-an-array/]] - Video: [[https://youtube.com/watch?v=XEmy13g1Qxc][explanation]] +- Notes: [[../../org/cpp/dsa/heap-priority-queue/0215-kth-largest-element-in-an-array.org][My Solution]] ** TODO 0621. Task Scheduler :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0621-task-scheduler.py][0621-task-scheduler.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0621-task-scheduler.cpp][0621-task-scheduler.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0621-task-scheduler.py][0621-task-scheduler.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0621-task-scheduler.cpp][0621-task-scheduler.cpp]] - LeetCode: [[https://leetcode.com/problems/task-scheduler/][task-scheduler/]] - Video: [[https://youtube.com/watch?v=s8p8ukTyA2I][explanation]] +- Notes: [[../../org/cpp/dsa/heap-priority-queue/0621-task-scheduler.org][My Solution]] ** TODO 0355. Design Twitter :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0355-design-twitter.py][0355-design-twitter.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0355-design-twitter.cpp][0355-design-twitter.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0355-design-twitter.py][0355-design-twitter.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0355-design-twitter.cpp][0355-design-twitter.cpp]] - LeetCode: [[https://leetcode.com/problems/design-twitter/][design-twitter/]] - Video: [[https://youtube.com/watch?v=pNichitDD2E][explanation]] +- Notes: [[../../org/cpp/dsa/heap-priority-queue/0355-design-twitter.org][My Solution]] ** TODO 0295. Find Median From Data Stream :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0295-find-median-from-data-stream.py][0295-find-median-from-data-stream.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0295-find-median-from-data-stream.cpp][0295-find-median-from-data-stream.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0295-find-median-from-data-stream.py][0295-find-median-from-data-stream.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0295-find-median-from-data-stream.cpp][0295-find-median-from-data-stream.cpp]] - LeetCode: [[https://leetcode.com/problems/find-median-from-data-stream/][find-median-from-data-stream/]] - Video: [[https://youtube.com/watch?v=itmhHWaHupI][explanation]] +- Notes: [[../../org/cpp/dsa/heap-priority-queue/0295-find-median-from-data-stream.org][My Solution]] * TODO Backtracking [/] ** TODO 1863. Sum of All Subsets XOR Total :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1863-sum-of-all-subset-xor-totals.py][1863-sum-of-all-subset-xor-totals.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1863-sum-of-all-subset-xor-totals.cpp][1863-sum-of-all-subset-xor-totals.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1863-sum-of-all-subset-xor-totals.py][1863-sum-of-all-subset-xor-totals.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1863-sum-of-all-subset-xor-totals.cpp][1863-sum-of-all-subset-xor-totals.cpp]] - LeetCode: [[https://leetcode.com/problems/sum-of-all-subset-xor-totals/][sum-of-all-subset-xor-totals/]] - Video: [[https://youtube.com/watch?v=LI7YR-bwNYY][explanation]] +- Notes: [[../../org/cpp/dsa/backtracking/1863-sum-of-all-subset-xor-totals.org][My Solution]] ** TODO 0078. Subsets :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0078-subsets.py][0078-subsets.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0078-subsets.cpp][0078-subsets.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0078-subsets.py][0078-subsets.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0078-subsets.cpp][0078-subsets.cpp]] - LeetCode: [[https://leetcode.com/problems/subsets/][subsets/]] - Video: [[https://youtube.com/watch?v=REOH22Xwdkk][explanation]] +- Notes: [[../../org/cpp/dsa/backtracking/0078-subsets.org][My Solution]] ** TODO 0039. Combination Sum :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0039-combination-sum.py][0039-combination-sum.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0039-combination-sum.cpp][0039-combination-sum.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0039-combination-sum.py][0039-combination-sum.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0039-combination-sum.cpp][0039-combination-sum.cpp]] - LeetCode: [[https://leetcode.com/problems/combination-sum/][combination-sum/]] - Video: [[https://youtube.com/watch?v=GBKI9VSKdGg][explanation]] +- Notes: [[../../org/cpp/dsa/backtracking/0039-combination-sum.org][My Solution]] ** TODO 0040. Combination Sum II :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0040-combination-sum-ii.py][0040-combination-sum-ii.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0040-combination-sum-ii.cpp][0040-combination-sum-ii.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0040-combination-sum-ii.py][0040-combination-sum-ii.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0040-combination-sum-ii.cpp][0040-combination-sum-ii.cpp]] - LeetCode: [[https://leetcode.com/problems/combination-sum-ii/][combination-sum-ii/]] - Video: [[https://youtube.com/watch?v=FOyRpNUSFeA][explanation]] +- Notes: [[../../org/cpp/dsa/backtracking/0040-combination-sum-ii.org][My Solution]] ** TODO 0077. Combinations :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0077-combinations.py][0077-combinations.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0077-combinations.cpp][0077-combinations.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0077-combinations.py][0077-combinations.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0077-combinations.cpp][0077-combinations.cpp]] - LeetCode: [[https://leetcode.com/problems/combinations/][combinations/]] - Video: [[https://youtube.com/watch?v=q0s6m7AiM7o][explanation]] +- Notes: [[../../org/cpp/dsa/backtracking/0077-combinations.org][My Solution]] ** TODO 0046. Permutations :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0046-permutations.py][0046-permutations.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0046-permutations.cpp][0046-permutations.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0046-permutations.py][0046-permutations.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0046-permutations.cpp][0046-permutations.cpp]] - LeetCode: [[https://leetcode.com/problems/permutations/][permutations/]] - Video: [[https://youtube.com/watch?v=FZe0UqISmUw][explanation]] +- Notes: [[../../org/cpp/dsa/backtracking/0046-permutations.org][My Solution]] ** TODO 0090. Subsets II :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0090-subsets-ii.py][0090-subsets-ii.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0090-subsets-ii.cpp][0090-subsets-ii.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0090-subsets-ii.py][0090-subsets-ii.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0090-subsets-ii.cpp][0090-subsets-ii.cpp]] - LeetCode: [[https://leetcode.com/problems/subsets-ii/][subsets-ii/]] - Video: [[https://youtube.com/watch?v=Vn2v6ajA7U0][explanation]] +- Notes: [[../../org/cpp/dsa/backtracking/0090-subsets-ii.org][My Solution]] ** TODO 0022. Generate Parentheses :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0022-generate-parentheses.py][0022-generate-parentheses.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0022-generate-parentheses.cpp][0022-generate-parentheses.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0022-generate-parentheses.py][0022-generate-parentheses.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0022-generate-parentheses.cpp][0022-generate-parentheses.cpp]] - LeetCode: [[https://leetcode.com/problems/generate-parentheses/][generate-parentheses/]] - Video: [[https://youtube.com/watch?v=s9fokUqJ76A][explanation]] +- Notes: [[../../org/cpp/dsa/backtracking/0022-generate-parentheses.org][My Solution]] ** TODO 1079. Letter Tile Possibilities :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1079-letter-tile-possibilities.py][1079-letter-tile-possibilities.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1079-letter-tile-possibilities.cpp][1079-letter-tile-possibilities.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1079-letter-tile-possibilities.py][1079-letter-tile-possibilities.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1079-letter-tile-possibilities.cpp][1079-letter-tile-possibilities.cpp]] - LeetCode: [[https://leetcode.com/problems/letter-tile-possibilities/][letter-tile-possibilities/]] - Video: [[https://youtube.com/watch?v=8FrJX-P_DnE][explanation]] +- Notes: [[../../org/cpp/dsa/backtracking/1079-letter-tile-possibilities.org][My Solution]] ** TODO 0079. Word Search :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0079-word-search.py][0079-word-search.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0079-word-search.cpp][0079-word-search.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0079-word-search.py][0079-word-search.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0079-word-search.cpp][0079-word-search.cpp]] - LeetCode: [[https://leetcode.com/problems/word-search/][word-search/]] - Video: [[https://youtube.com/watch?v=pfiQ_PS1g8E][explanation]] +- Notes: [[../../org/cpp/dsa/backtracking/0079-word-search.org][My Solution]] ** TODO 0131. Palindrome Partitioning :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0131-palindrome-partitioning.py][0131-palindrome-partitioning.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0131-palindrome-partitioning.cpp][0131-palindrome-partitioning.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0131-palindrome-partitioning.py][0131-palindrome-partitioning.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0131-palindrome-partitioning.cpp][0131-palindrome-partitioning.cpp]] - LeetCode: [[https://leetcode.com/problems/palindrome-partitioning/][palindrome-partitioning/]] - Video: [[https://youtube.com/watch?v=3jvWodd7ht0][explanation]] +- Notes: [[../../org/cpp/dsa/backtracking/0131-palindrome-partitioning.org][My Solution]] ** TODO 0017. Letter Combinations of a Phone Number :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0017-letter-combinations-of-a-phone-number.py][0017-letter-combinations-of-a-phone-number.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0017-letter-combinations-of-a-phone-number.cpp][0017-letter-combinations-of-a-phone-number.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0017-letter-combinations-of-a-phone-number.py][0017-letter-combinations-of-a-phone-number.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0017-letter-combinations-of-a-phone-number.cpp][0017-letter-combinations-of-a-phone-number.cpp]] - LeetCode: [[https://leetcode.com/problems/letter-combinations-of-a-phone-number/][letter-combinations-of-a-phone-number/]] - Video: [[https://youtube.com/watch?v=0snEunUacZY][explanation]] +- Notes: [[../../org/cpp/dsa/backtracking/0017-letter-combinations-of-a-phone-number.org][My Solution]] ** TODO 0351. Android Unlock Patterns :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0351-android-unlock-patterns.py][0351-android-unlock-patterns.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0351-android-unlock-patterns.cpp][0351-android-unlock-patterns.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0351-android-unlock-patterns.py][0351-android-unlock-patterns.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0351-android-unlock-patterns.cpp][0351-android-unlock-patterns.cpp]] - LeetCode: [[https://leetcode.com/problems/android-unlock-patterns/][android-unlock-patterns/]] +- Notes: [[../../org/cpp/dsa/backtracking/0351-android-unlock-patterns.org][My Solution]] ** TODO 0051. N Queens :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0051-n-queens.py][0051-n-queens.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0051-n-queens.cpp][0051-n-queens.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0051-n-queens.py][0051-n-queens.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0051-n-queens.cpp][0051-n-queens.cpp]] - LeetCode: [[https://leetcode.com/problems/n-queens/][n-queens/]] - Video: [[https://youtube.com/watch?v=Ph95IHmRp5M][explanation]] +- Notes: [[../../org/cpp/dsa/backtracking/0051-n-queens.org][My Solution]] ** TODO 0052. N Queens II :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0052-n-queens-ii.py][0052-n-queens-ii.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0052-n-queens-ii.cpp][0052-n-queens-ii.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0052-n-queens-ii.py][0052-n-queens-ii.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0052-n-queens-ii.cpp][0052-n-queens-ii.cpp]] - LeetCode: [[https://leetcode.com/problems/n-queens-ii/][n-queens-ii/]] - Video: [[https://youtube.com/watch?v=nalYyLZgvCY][explanation]] +- Notes: [[../../org/cpp/dsa/backtracking/0052-n-queens-ii.org][My Solution]] * TODO Graphs [/] ** TODO 2924. Find Champion II :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/2924-find-champion-ii.py][2924-find-champion-ii.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2924-find-champion-ii.cpp][2924-find-champion-ii.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/2924-find-champion-ii.py][2924-find-champion-ii.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2924-find-champion-ii.cpp][2924-find-champion-ii.cpp]] - LeetCode: [[https://leetcode.com/problems/find-champion-ii/][find-champion-ii/]] - Video: [[https://youtube.com/watch?v=HjSmSLPR7S4][explanation]] +- Notes: [[../../org/cpp/dsa/graphs/2924-find-champion-ii.org][My Solution]] ** TODO 0200. Number of Islands :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0200-number-of-islands.py][0200-number-of-islands.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0200-number-of-islands.cpp][0200-number-of-islands.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0200-number-of-islands.py][0200-number-of-islands.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0200-number-of-islands.cpp][0200-number-of-islands.cpp]] - LeetCode: [[https://leetcode.com/problems/number-of-islands/][number-of-islands/]] - Video: [[https://youtube.com/watch?v=pV2kpPD66nE][explanation]] +- Notes: [[../../org/cpp/dsa/graphs/0200-number-of-islands.org][My Solution]] ** TODO 0695. Max Area of Island :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0695-max-area-of-island.py][0695-max-area-of-island.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0695-max-area-of-island.cpp][0695-max-area-of-island.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0695-max-area-of-island.py][0695-max-area-of-island.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0695-max-area-of-island.cpp][0695-max-area-of-island.cpp]] - LeetCode: [[https://leetcode.com/problems/max-area-of-island/][max-area-of-island/]] - Video: [[https://youtube.com/watch?v=iJGr1OtmH0c][explanation]] +- Notes: [[../../org/cpp/dsa/graphs/0695-max-area-of-island.org][My Solution]] ** TODO 2658. Maximum Number of Fish in a Grid :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/2658-maximum-number-of-fish-in-a-grid.py][2658-maximum-number-of-fish-in-a-grid.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2658-maximum-number-of-fish-in-a-grid.cpp][2658-maximum-number-of-fish-in-a-grid.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/2658-maximum-number-of-fish-in-a-grid.py][2658-maximum-number-of-fish-in-a-grid.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2658-maximum-number-of-fish-in-a-grid.cpp][2658-maximum-number-of-fish-in-a-grid.cpp]] - LeetCode: [[https://leetcode.com/problems/maximum-number-of-fish-in-a-grid/][maximum-number-of-fish-in-a-grid/]] - Video: [[https://youtube.com/watch?v=JhAz6CkRGHI][explanation]] +- Notes: [[../../org/cpp/dsa/graphs/2658-maximum-number-of-fish-in-a-grid.org][My Solution]] ** TODO 0133. Clone Graph :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0133-clone-graph.py][0133-clone-graph.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0133-clone-graph.cpp][0133-clone-graph.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0133-clone-graph.py][0133-clone-graph.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0133-clone-graph.cpp][0133-clone-graph.cpp]] - LeetCode: [[https://leetcode.com/problems/clone-graph/][clone-graph/]] - Video: [[https://youtube.com/watch?v=mQeF6bN8hMk][explanation]] +- Notes: [[../../org/cpp/dsa/graphs/0133-clone-graph.org][My Solution]] ** TODO 0286. Walls And Gates :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0286-walls-and-gates.py][0286-walls-and-gates.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0286-walls-and-gates.cpp][0286-walls-and-gates.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0286-walls-and-gates.py][0286-walls-and-gates.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0286-walls-and-gates.cpp][0286-walls-and-gates.cpp]] - LeetCode: [[https://leetcode.com/problems/walls-and-gates/][walls-and-gates/]] - Video: [[https://youtube.com/watch?v=e69C6xhiSQE][explanation]] +- Notes: [[../../org/cpp/dsa/graphs/0286-walls-and-gates.org][My Solution]] ** TODO 0994. Rotting Oranges :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0994-rotting-oranges.py][0994-rotting-oranges.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0994-rotting-oranges.cpp][0994-rotting-oranges.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0994-rotting-oranges.py][0994-rotting-oranges.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0994-rotting-oranges.cpp][0994-rotting-oranges.cpp]] - LeetCode: [[https://leetcode.com/problems/rotting-oranges/][rotting-oranges/]] - Video: [[https://youtube.com/watch?v=y704fEOx0s0][explanation]] +- Notes: [[../../org/cpp/dsa/graphs/0994-rotting-oranges.org][My Solution]] ** TODO 1905. Count Sub Islands :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1905-count-sub-islands.py][1905-count-sub-islands.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1905-count-sub-islands.cpp][1905-count-sub-islands.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1905-count-sub-islands.py][1905-count-sub-islands.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1905-count-sub-islands.cpp][1905-count-sub-islands.cpp]] - LeetCode: [[https://leetcode.com/problems/count-sub-islands/][count-sub-islands/]] - Video: [[https://youtube.com/watch?v=mLpW3qfbNJ8][explanation]] +- Notes: [[../../org/cpp/dsa/graphs/1905-count-sub-islands.org][My Solution]] ** TODO 0417. Pacific Atlantic Water Flow :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0417-pacific-atlantic-water-flow.py][0417-pacific-atlantic-water-flow.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0417-pacific-atlantic-water-flow.cpp][0417-pacific-atlantic-water-flow.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0417-pacific-atlantic-water-flow.py][0417-pacific-atlantic-water-flow.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0417-pacific-atlantic-water-flow.cpp][0417-pacific-atlantic-water-flow.cpp]] - LeetCode: [[https://leetcode.com/problems/pacific-atlantic-water-flow/][pacific-atlantic-water-flow/]] - Video: [[https://youtube.com/watch?v=s-VkcjHqkGI][explanation]] +- Notes: [[../../org/cpp/dsa/graphs/0417-pacific-atlantic-water-flow.org][My Solution]] ** TODO 0130. Surrounded Regions :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0130-surrounded-regions.py][0130-surrounded-regions.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0130-surrounded-regions.cpp][0130-surrounded-regions.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0130-surrounded-regions.py][0130-surrounded-regions.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0130-surrounded-regions.cpp][0130-surrounded-regions.cpp]] - LeetCode: [[https://leetcode.com/problems/surrounded-regions/][surrounded-regions/]] - Video: [[https://youtube.com/watch?v=9z2BunfoZ5Y][explanation]] +- Notes: [[../../org/cpp/dsa/graphs/0130-surrounded-regions.org][My Solution]] ** TODO 0802. Find Eventual Safe States :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0802-find-eventual-safe-states.py][0802-find-eventual-safe-states.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0802-find-eventual-safe-states.cpp][0802-find-eventual-safe-states.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0802-find-eventual-safe-states.py][0802-find-eventual-safe-states.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0802-find-eventual-safe-states.cpp][0802-find-eventual-safe-states.cpp]] - LeetCode: [[https://leetcode.com/problems/find-eventual-safe-states/][find-eventual-safe-states/]] - Video: [[https://youtube.com/watch?v=Re_v0j0CRsg][explanation]] +- Notes: [[../../org/cpp/dsa/graphs/0802-find-eventual-safe-states.org][My Solution]] ** TODO 0207. Course Schedule :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0207-course-schedule.py][0207-course-schedule.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0207-course-schedule.cpp][0207-course-schedule.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0207-course-schedule.py][0207-course-schedule.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0207-course-schedule.cpp][0207-course-schedule.cpp]] - LeetCode: [[https://leetcode.com/problems/course-schedule/][course-schedule/]] - Video: [[https://youtube.com/watch?v=EgI5nU9etnU][explanation]] +- Notes: [[../../org/cpp/dsa/graphs/0207-course-schedule.org][My Solution]] ** TODO 0210. Course Schedule II :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0210-course-schedule-ii.py][0210-course-schedule-ii.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0210-course-schedule-ii.cpp][0210-course-schedule-ii.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0210-course-schedule-ii.py][0210-course-schedule-ii.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0210-course-schedule-ii.cpp][0210-course-schedule-ii.cpp]] - LeetCode: [[https://leetcode.com/problems/course-schedule-ii/][course-schedule-ii/]] - Video: [[https://youtube.com/watch?v=Akt3glAwyfY][explanation]] +- Notes: [[../../org/cpp/dsa/graphs/0210-course-schedule-ii.org][My Solution]] ** TODO 0261. Graph Valid Tree :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0261-graph-valid-tree.py][0261-graph-valid-tree.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0261-graph-valid-tree.cpp][0261-graph-valid-tree.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0261-graph-valid-tree.py][0261-graph-valid-tree.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0261-graph-valid-tree.cpp][0261-graph-valid-tree.cpp]] - LeetCode: [[https://leetcode.com/problems/graph-valid-tree/][graph-valid-tree/]] - Video: [[https://youtube.com/watch?v=bXsUuownnoQ][explanation]] +- Notes: [[../../org/cpp/dsa/graphs/0261-graph-valid-tree.org][My Solution]] ** TODO 0323. Number of Connected Components In An Undirected Graph :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0323-number-of-connected-components-in-an-undirected-graph.py][0323-number-of-connected-components-in-an-undirected-graph.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0323-number-of-connected-components-in-an-undirected-graph.cpp][0323-number-of-connected-components-in-an-undirected-graph.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0323-number-of-connected-components-in-an-undirected-graph.py][0323-number-of-connected-components-in-an-undirected-graph.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0323-number-of-connected-components-in-an-undirected-graph.cpp][0323-number-of-connected-components-in-an-undirected-graph.cpp]] - LeetCode: [[https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/][number-of-connected-components-in-an-undirected-graph/]] - Video: [[https://youtube.com/watch?v=8f1XPm4WOUc][explanation]] +- Notes: [[../../org/cpp/dsa/graphs/0323-number-of-connected-components-in-an-undirected-graph.org][My Solution]] ** TODO 0684. Redundant Connection :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0684-redundant-connection.py][0684-redundant-connection.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0684-redundant-connection.cpp][0684-redundant-connection.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0684-redundant-connection.py][0684-redundant-connection.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0684-redundant-connection.cpp][0684-redundant-connection.cpp]] - LeetCode: [[https://leetcode.com/problems/redundant-connection/][redundant-connection/]] - Video: [[https://youtube.com/watch?v=1lNK80tOTfc][explanation]] +- Notes: [[../../org/cpp/dsa/graphs/0684-redundant-connection.org][My Solution]] ** TODO 2092. Find All People With Secret :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/2092-find-all-people-with-secret.py][2092-find-all-people-with-secret.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2092-find-all-people-with-secret.cpp][2092-find-all-people-with-secret.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/2092-find-all-people-with-secret.py][2092-find-all-people-with-secret.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2092-find-all-people-with-secret.cpp][2092-find-all-people-with-secret.cpp]] - LeetCode: [[https://leetcode.com/problems/find-all-people-with-secret/][find-all-people-with-secret/]] - Video: [[https://youtube.com/watch?v=1XujGRSU1bQ][explanation]] +- Notes: [[../../org/cpp/dsa/graphs/2092-find-all-people-with-secret.org][My Solution]] ** TODO 0127. Word Ladder :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0127-word-ladder.py][0127-word-ladder.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0127-word-ladder.cpp][0127-word-ladder.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0127-word-ladder.py][0127-word-ladder.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0127-word-ladder.cpp][0127-word-ladder.cpp]] - LeetCode: [[https://leetcode.com/problems/word-ladder/][word-ladder/]] - Video: [[https://youtube.com/watch?v=h9iTnkgv05E][explanation]] +- Notes: [[../../org/cpp/dsa/graphs/0127-word-ladder.org][My Solution]] * TODO 1-D Dynamic Programming [/] ** TODO 0070. Climbing Stairs :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0070-climbing-stairs.py][0070-climbing-stairs.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0070-climbing-stairs.cpp][0070-climbing-stairs.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0070-climbing-stairs.py][0070-climbing-stairs.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0070-climbing-stairs.cpp][0070-climbing-stairs.cpp]] - LeetCode: [[https://leetcode.com/problems/climbing-stairs/][climbing-stairs/]] - Video: [[https://youtube.com/watch?v=Y0lT9Fck7qI][explanation]] +- Notes: [[../../org/cpp/dsa/1-d-dynamic-programming/0070-climbing-stairs.org][My Solution]] ** TODO 0746. Min Cost Climbing Stairs :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0746-min-cost-climbing-stairs.py][0746-min-cost-climbing-stairs.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0746-min-cost-climbing-stairs.cpp][0746-min-cost-climbing-stairs.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0746-min-cost-climbing-stairs.py][0746-min-cost-climbing-stairs.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0746-min-cost-climbing-stairs.cpp][0746-min-cost-climbing-stairs.cpp]] - LeetCode: [[https://leetcode.com/problems/min-cost-climbing-stairs/][min-cost-climbing-stairs/]] - Video: [[https://youtube.com/watch?v=ktmzAZWkEZ0][explanation]] +- Notes: [[../../org/cpp/dsa/1-d-dynamic-programming/0746-min-cost-climbing-stairs.org][My Solution]] ** TODO 0198. House Robber :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0198-house-robber.py][0198-house-robber.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0198-house-robber.cpp][0198-house-robber.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0198-house-robber.py][0198-house-robber.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0198-house-robber.cpp][0198-house-robber.cpp]] - LeetCode: [[https://leetcode.com/problems/house-robber/][house-robber/]] - Video: [[https://youtube.com/watch?v=73r3KWiEvyk][explanation]] +- Notes: [[../../org/cpp/dsa/1-d-dynamic-programming/0198-house-robber.org][My Solution]] ** TODO 0213. House Robber II :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0213-house-robber-ii.py][0213-house-robber-ii.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0213-house-robber-ii.cpp][0213-house-robber-ii.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0213-house-robber-ii.py][0213-house-robber-ii.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0213-house-robber-ii.cpp][0213-house-robber-ii.cpp]] - LeetCode: [[https://leetcode.com/problems/house-robber-ii/][house-robber-ii/]] - Video: [[https://youtube.com/watch?v=rWAJCfYYOvM][explanation]] +- Notes: [[../../org/cpp/dsa/1-d-dynamic-programming/0213-house-robber-ii.org][My Solution]] ** TODO 0005. Longest Palindromic Substring :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0005-longest-palindromic-substring.py][0005-longest-palindromic-substring.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0005-longest-palindromic-substring.cpp][0005-longest-palindromic-substring.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0005-longest-palindromic-substring.py][0005-longest-palindromic-substring.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0005-longest-palindromic-substring.cpp][0005-longest-palindromic-substring.cpp]] - LeetCode: [[https://leetcode.com/problems/longest-palindromic-substring/][longest-palindromic-substring/]] - Video: [[https://youtube.com/watch?v=XYQecbcd6_c][explanation]] +- Notes: [[../../org/cpp/dsa/1-d-dynamic-programming/0005-longest-palindromic-substring.org][My Solution]] ** TODO 0647. Palindromic Substrings :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0647-palindromic-substrings.py][0647-palindromic-substrings.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0647-palindromic-substrings.cpp][0647-palindromic-substrings.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0647-palindromic-substrings.py][0647-palindromic-substrings.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0647-palindromic-substrings.cpp][0647-palindromic-substrings.cpp]] - LeetCode: [[https://leetcode.com/problems/palindromic-substrings/][palindromic-substrings/]] - Video: [[https://youtube.com/watch?v=4RACzI5-du8][explanation]] +- Notes: [[../../org/cpp/dsa/1-d-dynamic-programming/0647-palindromic-substrings.org][My Solution]] ** TODO 0091. Decode Ways :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0091-decode-ways.py][0091-decode-ways.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0091-decode-ways.cpp][0091-decode-ways.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0091-decode-ways.py][0091-decode-ways.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0091-decode-ways.cpp][0091-decode-ways.cpp]] - LeetCode: [[https://leetcode.com/problems/decode-ways/][decode-ways/]] - Video: [[https://youtube.com/watch?v=6aEyTjOwlJU][explanation]] +- Notes: [[../../org/cpp/dsa/1-d-dynamic-programming/0091-decode-ways.org][My Solution]] ** TODO 0322. Coin Change :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0322-coin-change.py][0322-coin-change.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0322-coin-change.cpp][0322-coin-change.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0322-coin-change.py][0322-coin-change.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0322-coin-change.cpp][0322-coin-change.cpp]] - LeetCode: [[https://leetcode.com/problems/coin-change/][coin-change/]] - Video: [[https://youtube.com/watch?v=H9bfqozjoqs][explanation]] +- Notes: [[../../org/cpp/dsa/1-d-dynamic-programming/0322-coin-change.org][My Solution]] ** TODO 0152. Maximum Product Subarray :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0152-maximum-product-subarray.py][0152-maximum-product-subarray.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0152-maximum-product-subarray.cpp][0152-maximum-product-subarray.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0152-maximum-product-subarray.py][0152-maximum-product-subarray.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0152-maximum-product-subarray.cpp][0152-maximum-product-subarray.cpp]] - LeetCode: [[https://leetcode.com/problems/maximum-product-subarray/][maximum-product-subarray/]] - Video: [[https://youtube.com/watch?v=lXVy6YWFcRM][explanation]] +- Notes: [[../../org/cpp/dsa/1-d-dynamic-programming/0152-maximum-product-subarray.org][My Solution]] ** TODO 0139. Word Break :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0139-word-break.py][0139-word-break.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0139-word-break.cpp][0139-word-break.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0139-word-break.py][0139-word-break.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0139-word-break.cpp][0139-word-break.cpp]] - LeetCode: [[https://leetcode.com/problems/word-break/][word-break/]] - Video: [[https://youtube.com/watch?v=Sx9NNgInc3A][explanation]] +- Notes: [[../../org/cpp/dsa/1-d-dynamic-programming/0139-word-break.org][My Solution]] ** TODO 0300. Longest Increasing Subsequence :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0300-longest-increasing-subsequence.py][0300-longest-increasing-subsequence.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0300-longest-increasing-subsequence.cpp][0300-longest-increasing-subsequence.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0300-longest-increasing-subsequence.py][0300-longest-increasing-subsequence.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0300-longest-increasing-subsequence.cpp][0300-longest-increasing-subsequence.cpp]] - LeetCode: [[https://leetcode.com/problems/longest-increasing-subsequence/][longest-increasing-subsequence/]] - Video: [[https://youtube.com/watch?v=cjWnW0hdF1Y][explanation]] +- Notes: [[../../org/cpp/dsa/1-d-dynamic-programming/0300-longest-increasing-subsequence.org][My Solution]] ** TODO 0416. Partition Equal Subset Sum :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0416-partition-equal-subset-sum.py][0416-partition-equal-subset-sum.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0416-partition-equal-subset-sum.cpp][0416-partition-equal-subset-sum.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0416-partition-equal-subset-sum.py][0416-partition-equal-subset-sum.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0416-partition-equal-subset-sum.cpp][0416-partition-equal-subset-sum.cpp]] - LeetCode: [[https://leetcode.com/problems/partition-equal-subset-sum/][partition-equal-subset-sum/]] - Video: [[https://youtube.com/watch?v=IsvocB5BJhw][explanation]] +- Notes: [[../../org/cpp/dsa/1-d-dynamic-programming/0416-partition-equal-subset-sum.org][My Solution]] ** TODO 0656. Coin Path :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0656-coin-path.py][0656-coin-path.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0656-coin-path.cpp][0656-coin-path.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0656-coin-path.py][0656-coin-path.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0656-coin-path.cpp][0656-coin-path.cpp]] - LeetCode: [[https://leetcode.com/problems/coin-path/][coin-path/]] +- Notes: [[../../org/cpp/dsa/1-d-dynamic-programming/0656-coin-path.org][My Solution]] * TODO Intervals [/] ** TODO 0057. Insert Interval :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0057-insert-interval.py][0057-insert-interval.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0057-insert-interval.cpp][0057-insert-interval.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0057-insert-interval.py][0057-insert-interval.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0057-insert-interval.cpp][0057-insert-interval.cpp]] - LeetCode: [[https://leetcode.com/problems/insert-interval/][insert-interval/]] - Video: [[https://youtube.com/watch?v=A8NUOmlwOlM][explanation]] +- Notes: [[../../org/cpp/dsa/intervals/0057-insert-interval.org][My Solution]] ** TODO 0056. Merge Intervals :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0056-merge-intervals.py][0056-merge-intervals.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0056-merge-intervals.cpp][0056-merge-intervals.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0056-merge-intervals.py][0056-merge-intervals.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0056-merge-intervals.cpp][0056-merge-intervals.cpp]] - LeetCode: [[https://leetcode.com/problems/merge-intervals/][merge-intervals/]] - Video: [[https://youtube.com/watch?v=44H3cEC2fFM][explanation]] +- Notes: [[../../org/cpp/dsa/intervals/0056-merge-intervals.org][My Solution]] ** TODO 0435. Non Overlapping Intervals :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0435-non-overlapping-intervals.py][0435-non-overlapping-intervals.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0435-non-overlapping-intervals.cpp][0435-non-overlapping-intervals.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0435-non-overlapping-intervals.py][0435-non-overlapping-intervals.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0435-non-overlapping-intervals.cpp][0435-non-overlapping-intervals.cpp]] - LeetCode: [[https://leetcode.com/problems/non-overlapping-intervals/][non-overlapping-intervals/]] - Video: [[https://youtube.com/watch?v=nONCGxWoUfM][explanation]] +- Notes: [[../../org/cpp/dsa/intervals/0435-non-overlapping-intervals.org][My Solution]] ** TODO 0986. Interval List Intersections :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0986-interval-list-intersections.py][0986-interval-list-intersections.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0986-interval-list-intersections.cpp][0986-interval-list-intersections.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0986-interval-list-intersections.py][0986-interval-list-intersections.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0986-interval-list-intersections.cpp][0986-interval-list-intersections.cpp]] - LeetCode: [[https://leetcode.com/problems/interval-list-intersections/][interval-list-intersections/]] +- Notes: [[../../org/cpp/dsa/intervals/0986-interval-list-intersections.org][My Solution]] ** TODO 0252. Meeting Rooms :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0252-meeting-rooms.py][0252-meeting-rooms.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0252-meeting-rooms.cpp][0252-meeting-rooms.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0252-meeting-rooms.py][0252-meeting-rooms.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0252-meeting-rooms.cpp][0252-meeting-rooms.cpp]] - LeetCode: [[https://leetcode.com/problems/meeting-rooms/][meeting-rooms/]] - Video: [[https://youtube.com/watch?v=PaJxqZVPhbg][explanation]] +- Notes: [[../../org/cpp/dsa/intervals/0252-meeting-rooms.org][My Solution]] ** TODO 0253. Meeting Rooms II :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0253-meeting-rooms-ii.py][0253-meeting-rooms-ii.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0253-meeting-rooms-ii.cpp][0253-meeting-rooms-ii.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0253-meeting-rooms-ii.py][0253-meeting-rooms-ii.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0253-meeting-rooms-ii.cpp][0253-meeting-rooms-ii.cpp]] - LeetCode: [[https://leetcode.com/problems/meeting-rooms-ii/][meeting-rooms-ii/]] - Video: [[https://youtube.com/watch?v=FdzJmTCVyJU][explanation]] +- Notes: [[../../org/cpp/dsa/intervals/0253-meeting-rooms-ii.org][My Solution]] ** TODO 1851. Minimum Interval to Include Each Query :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1851-minimum-interval-to-include-each-query.py][1851-minimum-interval-to-include-each-query.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1851-minimum-interval-to-include-each-query.cpp][1851-minimum-interval-to-include-each-query.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1851-minimum-interval-to-include-each-query.py][1851-minimum-interval-to-include-each-query.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1851-minimum-interval-to-include-each-query.cpp][1851-minimum-interval-to-include-each-query.cpp]] - LeetCode: [[https://leetcode.com/problems/minimum-interval-to-include-each-query/][minimum-interval-to-include-each-query/]] - Video: [[https://youtube.com/watch?v=5hQ5WWW5awQ][explanation]] +- Notes: [[../../org/cpp/dsa/intervals/1851-minimum-interval-to-include-each-query.org][My Solution]] * TODO Greedy [/] ** TODO 0945. Minimum Increment to Make Array Unique :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0945-minimum-increment-to-make-array-unique.py][0945-minimum-increment-to-make-array-unique.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0945-minimum-increment-to-make-array-unique.cpp][0945-minimum-increment-to-make-array-unique.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0945-minimum-increment-to-make-array-unique.py][0945-minimum-increment-to-make-array-unique.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0945-minimum-increment-to-make-array-unique.cpp][0945-minimum-increment-to-make-array-unique.cpp]] - LeetCode: [[https://leetcode.com/problems/minimum-increment-to-make-array-unique/][minimum-increment-to-make-array-unique/]] - Video: [[https://youtube.com/watch?v=XPPs2Wj2YSk][explanation]] +- Notes: [[../../org/cpp/dsa/greedy/0945-minimum-increment-to-make-array-unique.org][My Solution]] ** TODO 0053. Maximum Subarray :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0053-maximum-subarray.py][0053-maximum-subarray.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0053-maximum-subarray.cpp][0053-maximum-subarray.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0053-maximum-subarray.py][0053-maximum-subarray.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0053-maximum-subarray.cpp][0053-maximum-subarray.cpp]] - LeetCode: [[https://leetcode.com/problems/maximum-subarray/][maximum-subarray/]] - Video: [[https://youtube.com/watch?v=5WZl3MMT0Eg][explanation]] +- Notes: [[../../org/cpp/dsa/greedy/0053-maximum-subarray.org][My Solution]] ** TODO 0978. Longest Turbulent Subarray :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0978-longest-turbulent-subarray.py][0978-longest-turbulent-subarray.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0978-longest-turbulent-subarray.cpp][0978-longest-turbulent-subarray.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0978-longest-turbulent-subarray.py][0978-longest-turbulent-subarray.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0978-longest-turbulent-subarray.cpp][0978-longest-turbulent-subarray.cpp]] - LeetCode: [[https://leetcode.com/problems/longest-turbulent-subarray/][longest-turbulent-subarray/]] - Video: [[https://youtube.com/watch?v=V_iHUhR8Dek][explanation]] +- Notes: [[../../org/cpp/dsa/greedy/0978-longest-turbulent-subarray.org][My Solution]] ** TODO 0055. Jump Game :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0055-jump-game.py][0055-jump-game.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0055-jump-game.cpp][0055-jump-game.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0055-jump-game.py][0055-jump-game.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0055-jump-game.cpp][0055-jump-game.cpp]] - LeetCode: [[https://leetcode.com/problems/jump-game/][jump-game/]] - Video: [[https://youtube.com/watch?v=Yan0cv2cLy8][explanation]] +- Notes: [[../../org/cpp/dsa/greedy/0055-jump-game.org][My Solution]] ** TODO 0045. Jump Game II :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0045-jump-game-ii.py][0045-jump-game-ii.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0045-jump-game-ii.cpp][0045-jump-game-ii.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0045-jump-game-ii.py][0045-jump-game-ii.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0045-jump-game-ii.cpp][0045-jump-game-ii.cpp]] - LeetCode: [[https://leetcode.com/problems/jump-game-ii/][jump-game-ii/]] - Video: [[https://youtube.com/watch?v=dJ7sWiOoK7g][explanation]] +- Notes: [[../../org/cpp/dsa/greedy/0045-jump-game-ii.org][My Solution]] ** TODO 1871. Jump Game VII :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1871-jump-game-vii.py][1871-jump-game-vii.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1871-jump-game-vii.cpp][1871-jump-game-vii.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1871-jump-game-vii.py][1871-jump-game-vii.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1871-jump-game-vii.cpp][1871-jump-game-vii.cpp]] - LeetCode: [[https://leetcode.com/problems/jump-game-vii/][jump-game-vii/]] - Video: [[https://youtube.com/watch?v=v1HpZUnQ4Yo][explanation]] +- Notes: [[../../org/cpp/dsa/greedy/1871-jump-game-vii.org][My Solution]] ** TODO 0134. Gas Station :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0134-gas-station.py][0134-gas-station.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0134-gas-station.cpp][0134-gas-station.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0134-gas-station.py][0134-gas-station.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0134-gas-station.cpp][0134-gas-station.cpp]] - LeetCode: [[https://leetcode.com/problems/gas-station/][gas-station/]] - Video: [[https://youtube.com/watch?v=lJwbPZGo05A][explanation]] +- Notes: [[../../org/cpp/dsa/greedy/0134-gas-station.org][My Solution]] ** TODO 0846. Hand of Straights :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0846-hand-of-straights.py][0846-hand-of-straights.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0846-hand-of-straights.cpp][0846-hand-of-straights.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0846-hand-of-straights.py][0846-hand-of-straights.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0846-hand-of-straights.cpp][0846-hand-of-straights.cpp]] - LeetCode: [[https://leetcode.com/problems/hand-of-straights/][hand-of-straights/]] - Video: [[https://youtube.com/watch?v=amnrMCVd2YI][explanation]] +- Notes: [[../../org/cpp/dsa/greedy/0846-hand-of-straights.org][My Solution]] ** TODO 1899. Merge Triplets to Form Target Triplet :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1899-merge-triplets-to-form-target-triplet.py][1899-merge-triplets-to-form-target-triplet.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1899-merge-triplets-to-form-target-triplet.cpp][1899-merge-triplets-to-form-target-triplet.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1899-merge-triplets-to-form-target-triplet.py][1899-merge-triplets-to-form-target-triplet.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1899-merge-triplets-to-form-target-triplet.cpp][1899-merge-triplets-to-form-target-triplet.cpp]] - LeetCode: [[https://leetcode.com/problems/merge-triplets-to-form-target-triplet/][merge-triplets-to-form-target-triplet/]] - Video: [[https://youtube.com/watch?v=kShkQLQZ9K4][explanation]] +- Notes: [[../../org/cpp/dsa/greedy/1899-merge-triplets-to-form-target-triplet.org][My Solution]] ** TODO 0763. Partition Labels :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0763-partition-labels.py][0763-partition-labels.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0763-partition-labels.cpp][0763-partition-labels.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0763-partition-labels.py][0763-partition-labels.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0763-partition-labels.cpp][0763-partition-labels.cpp]] - LeetCode: [[https://leetcode.com/problems/partition-labels/][partition-labels/]] - Video: [[https://youtube.com/watch?v=B7m8UmZE-vw][explanation]] +- Notes: [[../../org/cpp/dsa/greedy/0763-partition-labels.org][My Solution]] ** TODO 0678. Valid Parenthesis String :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0678-valid-parenthesis-string.py][0678-valid-parenthesis-string.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0678-valid-parenthesis-string.cpp][0678-valid-parenthesis-string.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0678-valid-parenthesis-string.py][0678-valid-parenthesis-string.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0678-valid-parenthesis-string.cpp][0678-valid-parenthesis-string.cpp]] - LeetCode: [[https://leetcode.com/problems/valid-parenthesis-string/][valid-parenthesis-string/]] - Video: [[https://youtube.com/watch?v=QhPdNS143Qg][explanation]] +- Notes: [[../../org/cpp/dsa/greedy/0678-valid-parenthesis-string.org][My Solution]] * TODO Advanced Graphs [/] ** TODO 0743. Network Delay Time :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0743-network-delay-time.py][0743-network-delay-time.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0743-network-delay-time.cpp][0743-network-delay-time.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0743-network-delay-time.py][0743-network-delay-time.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0743-network-delay-time.cpp][0743-network-delay-time.cpp]] - LeetCode: [[https://leetcode.com/problems/network-delay-time/][network-delay-time/]] - Video: [[https://youtube.com/watch?v=EaphyqKU4PQ][explanation]] +- Notes: [[../../org/cpp/dsa/advanced-graphs/0743-network-delay-time.org][My Solution]] ** TODO 0332. Reconstruct Itinerary :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0332-reconstruct-itinerary.py][0332-reconstruct-itinerary.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0332-reconstruct-itinerary.cpp][0332-reconstruct-itinerary.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0332-reconstruct-itinerary.py][0332-reconstruct-itinerary.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0332-reconstruct-itinerary.cpp][0332-reconstruct-itinerary.cpp]] - LeetCode: [[https://leetcode.com/problems/reconstruct-itinerary/][reconstruct-itinerary/]] - Video: [[https://youtube.com/watch?v=ZyB_gQ8vqGA][explanation]] +- Notes: [[../../org/cpp/dsa/advanced-graphs/0332-reconstruct-itinerary.org][My Solution]] ** TODO 1584. Min Cost to Connect All Points :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1584-min-cost-to-connect-all-points.py][1584-min-cost-to-connect-all-points.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1584-min-cost-to-connect-all-points.cpp][1584-min-cost-to-connect-all-points.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1584-min-cost-to-connect-all-points.py][1584-min-cost-to-connect-all-points.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1584-min-cost-to-connect-all-points.cpp][1584-min-cost-to-connect-all-points.cpp]] - LeetCode: [[https://leetcode.com/problems/min-cost-to-connect-all-points/][min-cost-to-connect-all-points/]] - Video: [[https://youtube.com/watch?v=f7JOBJIC-NA][explanation]] +- Notes: [[../../org/cpp/dsa/advanced-graphs/1584-min-cost-to-connect-all-points.org][My Solution]] ** TODO 2812. Find the Safest Path in a Grid :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/2812-find-the-safest-path-in-a-grid.py][2812-find-the-safest-path-in-a-grid.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2812-find-the-safest-path-in-a-grid.cpp][2812-find-the-safest-path-in-a-grid.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/2812-find-the-safest-path-in-a-grid.py][2812-find-the-safest-path-in-a-grid.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2812-find-the-safest-path-in-a-grid.cpp][2812-find-the-safest-path-in-a-grid.cpp]] - LeetCode: [[https://leetcode.com/problems/find-the-safest-path-in-a-grid/][find-the-safest-path-in-a-grid/]] - Video: [[https://youtube.com/watch?v=-5mQcNiVWTs][explanation]] +- Notes: [[../../org/cpp/dsa/advanced-graphs/2812-find-the-safest-path-in-a-grid.org][My Solution]] ** TODO 0778. Swim In Rising Water :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0778-swim-in-rising-water.py][0778-swim-in-rising-water.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0778-swim-in-rising-water.cpp][0778-swim-in-rising-water.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0778-swim-in-rising-water.py][0778-swim-in-rising-water.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0778-swim-in-rising-water.cpp][0778-swim-in-rising-water.cpp]] - LeetCode: [[https://leetcode.com/problems/swim-in-rising-water/][swim-in-rising-water/]] - Video: [[https://youtube.com/watch?v=amvrKlMLuGY][explanation]] +- Notes: [[../../org/cpp/dsa/advanced-graphs/0778-swim-in-rising-water.org][My Solution]] ** TODO 0269. Alien Dictionary :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0269-alien-dictionary.py][0269-alien-dictionary.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0269-alien-dictionary.cpp][0269-alien-dictionary.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0269-alien-dictionary.py][0269-alien-dictionary.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0269-alien-dictionary.cpp][0269-alien-dictionary.cpp]] - LeetCode: [[https://leetcode.com/problems/alien-dictionary/][alien-dictionary/]] - Video: [[https://youtube.com/watch?v=6kTZYvNNyps][explanation]] +- Notes: [[../../org/cpp/dsa/advanced-graphs/0269-alien-dictionary.org][My Solution]] ** TODO 0787. Cheapest Flights Within K Stops :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0787-cheapest-flights-within-k-stops.py][0787-cheapest-flights-within-k-stops.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0787-cheapest-flights-within-k-stops.cpp][0787-cheapest-flights-within-k-stops.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0787-cheapest-flights-within-k-stops.py][0787-cheapest-flights-within-k-stops.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0787-cheapest-flights-within-k-stops.cpp][0787-cheapest-flights-within-k-stops.cpp]] - LeetCode: [[https://leetcode.com/problems/cheapest-flights-within-k-stops/][cheapest-flights-within-k-stops/]] - Video: [[https://youtube.com/watch?v=5eIK3zUdYmE][explanation]] +- Notes: [[../../org/cpp/dsa/advanced-graphs/0787-cheapest-flights-within-k-stops.org][My Solution]] ** TODO 2493. Divide Nodes Into the Maximum Number of Groups :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/2493-divide-nodes-into-the-maximum-number-of-groups.py][2493-divide-nodes-into-the-maximum-number-of-groups.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2493-divide-nodes-into-the-maximum-number-of-groups.cpp][2493-divide-nodes-into-the-maximum-number-of-groups.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/2493-divide-nodes-into-the-maximum-number-of-groups.py][2493-divide-nodes-into-the-maximum-number-of-groups.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2493-divide-nodes-into-the-maximum-number-of-groups.cpp][2493-divide-nodes-into-the-maximum-number-of-groups.cpp]] - LeetCode: [[https://leetcode.com/problems/divide-nodes-into-the-maximum-number-of-groups/][divide-nodes-into-the-maximum-number-of-groups/]] - Video: [[https://youtube.com/watch?v=Gn0ADjje8Rg][explanation]] +- Notes: [[../../org/cpp/dsa/advanced-graphs/2493-divide-nodes-into-the-maximum-number-of-groups.org][My Solution]] * TODO Bit Manipulation [/] ** TODO 0136. Single Number :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0136-single-number.py][0136-single-number.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0136-single-number.cpp][0136-single-number.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0136-single-number.py][0136-single-number.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0136-single-number.cpp][0136-single-number.cpp]] - LeetCode: [[https://leetcode.com/problems/single-number/][single-number/]] - Video: [[https://youtube.com/watch?v=qMPX1AOa83k][explanation]] +- Notes: [[../../org/cpp/dsa/bit-manipulation/0136-single-number.org][My Solution]] ** TODO 0260. Single Number III :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0260-single-number-iii.py][0260-single-number-iii.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0260-single-number-iii.cpp][0260-single-number-iii.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0260-single-number-iii.py][0260-single-number-iii.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0260-single-number-iii.cpp][0260-single-number-iii.cpp]] - LeetCode: [[https://leetcode.com/problems/single-number-iii/][single-number-iii/]] - Video: [[https://youtube.com/watch?v=faoVORjd-T8][explanation]] +- Notes: [[../../org/cpp/dsa/bit-manipulation/0260-single-number-iii.org][My Solution]] ** TODO 0191. Number of 1 Bits :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0191-number-of-1-bits.py][0191-number-of-1-bits.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0191-number-of-1-bits.cpp][0191-number-of-1-bits.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0191-number-of-1-bits.py][0191-number-of-1-bits.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0191-number-of-1-bits.cpp][0191-number-of-1-bits.cpp]] - LeetCode: [[https://leetcode.com/problems/number-of-1-bits/][number-of-1-bits/]] - Video: [[https://youtube.com/watch?v=5Km3utixwZs][explanation]] +- Notes: [[../../org/cpp/dsa/bit-manipulation/0191-number-of-1-bits.org][My Solution]] ** TODO 0338. Counting Bits :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0338-counting-bits.py][0338-counting-bits.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0338-counting-bits.cpp][0338-counting-bits.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0338-counting-bits.py][0338-counting-bits.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0338-counting-bits.cpp][0338-counting-bits.cpp]] - LeetCode: [[https://leetcode.com/problems/counting-bits/][counting-bits/]] - Video: [[https://youtube.com/watch?v=RyBM56RIWrM][explanation]] +- Notes: [[../../org/cpp/dsa/bit-manipulation/0338-counting-bits.org][My Solution]] ** TODO 2220. Minimum Bit Flips to Convert Number :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/2220-minimum-bit-flips-to-convert-number.py][2220-minimum-bit-flips-to-convert-number.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2220-minimum-bit-flips-to-convert-number.cpp][2220-minimum-bit-flips-to-convert-number.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/2220-minimum-bit-flips-to-convert-number.py][2220-minimum-bit-flips-to-convert-number.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2220-minimum-bit-flips-to-convert-number.cpp][2220-minimum-bit-flips-to-convert-number.cpp]] - LeetCode: [[https://leetcode.com/problems/minimum-bit-flips-to-convert-number/][minimum-bit-flips-to-convert-number/]] - Video: [[https://youtube.com/watch?v=yz48myznqQY][explanation]] +- Notes: [[../../org/cpp/dsa/bit-manipulation/2220-minimum-bit-flips-to-convert-number.org][My Solution]] ** TODO 0190. Reverse Bits :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0190-reverse-bits.py][0190-reverse-bits.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0190-reverse-bits.cpp][0190-reverse-bits.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0190-reverse-bits.py][0190-reverse-bits.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0190-reverse-bits.cpp][0190-reverse-bits.cpp]] - LeetCode: [[https://leetcode.com/problems/reverse-bits/][reverse-bits/]] - Video: [[https://youtube.com/watch?v=UcoN6UjAI64][explanation]] +- Notes: [[../../org/cpp/dsa/bit-manipulation/0190-reverse-bits.org][My Solution]] ** TODO 0268. Missing Number :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0268-missing-number.py][0268-missing-number.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0268-missing-number.cpp][0268-missing-number.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0268-missing-number.py][0268-missing-number.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0268-missing-number.cpp][0268-missing-number.cpp]] - LeetCode: [[https://leetcode.com/problems/missing-number/][missing-number/]] - Video: [[https://youtube.com/watch?v=WnPLSRLSANE][explanation]] +- Notes: [[../../org/cpp/dsa/bit-manipulation/0268-missing-number.org][My Solution]] ** TODO 0231. Power of Two :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0231-power-of-two.py][0231-power-of-two.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0231-power-of-two.cpp][0231-power-of-two.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0231-power-of-two.py][0231-power-of-two.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0231-power-of-two.cpp][0231-power-of-two.cpp]] - LeetCode: [[https://leetcode.com/problems/power-of-two/][power-of-two/]] - Video: [[https://youtube.com/watch?v=H2bjttEV4Vc][explanation]] +- Notes: [[../../org/cpp/dsa/bit-manipulation/0231-power-of-two.org][My Solution]] ** TODO 0371. Sum of Two Integers :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0371-sum-of-two-integers.py][0371-sum-of-two-integers.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0371-sum-of-two-integers.cpp][0371-sum-of-two-integers.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0371-sum-of-two-integers.py][0371-sum-of-two-integers.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0371-sum-of-two-integers.cpp][0371-sum-of-two-integers.cpp]] - LeetCode: [[https://leetcode.com/problems/sum-of-two-integers/][sum-of-two-integers/]] - Video: [[https://youtube.com/watch?v=gVUrDV4tZfY][explanation]] +- Notes: [[../../org/cpp/dsa/bit-manipulation/0371-sum-of-two-integers.org][My Solution]] ** TODO 0007. Reverse Integer :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0007-reverse-integer.py][0007-reverse-integer.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0007-reverse-integer.cpp][0007-reverse-integer.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0007-reverse-integer.py][0007-reverse-integer.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0007-reverse-integer.cpp][0007-reverse-integer.cpp]] - LeetCode: [[https://leetcode.com/problems/reverse-integer/][reverse-integer/]] - Video: [[https://youtube.com/watch?v=HAgLH58IgJQ][explanation]] +- Notes: [[../../org/cpp/dsa/bit-manipulation/0007-reverse-integer.org][My Solution]] * TODO Math & Geometry [/] ** TODO 0840. Magic Squares In Grid :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0840-magic-squares-in-grid.py][0840-magic-squares-in-grid.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0840-magic-squares-in-grid.cpp][0840-magic-squares-in-grid.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0840-magic-squares-in-grid.py][0840-magic-squares-in-grid.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0840-magic-squares-in-grid.cpp][0840-magic-squares-in-grid.cpp]] - LeetCode: [[https://leetcode.com/problems/magic-squares-in-grid/][magic-squares-in-grid/]] - Video: [[https://youtube.com/watch?v=FV52wWrivNc][explanation]] +- Notes: [[../../org/cpp/dsa/math-geometry/0840-magic-squares-in-grid.org][My Solution]] ** TODO 0048. Rotate Image :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0048-rotate-image.py][0048-rotate-image.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0048-rotate-image.cpp][0048-rotate-image.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0048-rotate-image.py][0048-rotate-image.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0048-rotate-image.cpp][0048-rotate-image.cpp]] - LeetCode: [[https://leetcode.com/problems/rotate-image/][rotate-image/]] - Video: [[https://youtube.com/watch?v=fMSJSS7eO1w][explanation]] +- Notes: [[../../org/cpp/dsa/math-geometry/0048-rotate-image.org][My Solution]] ** TODO 0054. Spiral Matrix :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0054-spiral-matrix.py][0054-spiral-matrix.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0054-spiral-matrix.cpp][0054-spiral-matrix.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0054-spiral-matrix.py][0054-spiral-matrix.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0054-spiral-matrix.cpp][0054-spiral-matrix.cpp]] - LeetCode: [[https://leetcode.com/problems/spiral-matrix/][spiral-matrix/]] - Video: [[https://youtube.com/watch?v=BJnMZNwUk1M][explanation]] +- Notes: [[../../org/cpp/dsa/math-geometry/0054-spiral-matrix.org][My Solution]] ** TODO 2326. Spiral Matrix IV :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/2326-spiral-matrix-iv.py][2326-spiral-matrix-iv.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2326-spiral-matrix-iv.cpp][2326-spiral-matrix-iv.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/2326-spiral-matrix-iv.py][2326-spiral-matrix-iv.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2326-spiral-matrix-iv.cpp][2326-spiral-matrix-iv.cpp]] - LeetCode: [[https://leetcode.com/problems/spiral-matrix-iv/][spiral-matrix-iv/]] - Video: [[https://youtube.com/watch?v=sOV1nRhmsMQ][explanation]] +- Notes: [[../../org/cpp/dsa/math-geometry/2326-spiral-matrix-iv.org][My Solution]] ** TODO 0073. Set Matrix Zeroes :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0073-set-matrix-zeroes.py][0073-set-matrix-zeroes.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0073-set-matrix-zeroes.cpp][0073-set-matrix-zeroes.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0073-set-matrix-zeroes.py][0073-set-matrix-zeroes.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0073-set-matrix-zeroes.cpp][0073-set-matrix-zeroes.cpp]] - LeetCode: [[https://leetcode.com/problems/set-matrix-zeroes/][set-matrix-zeroes/]] - Video: [[https://youtube.com/watch?v=T41rL0L3Pnw][explanation]] +- Notes: [[../../org/cpp/dsa/math-geometry/0073-set-matrix-zeroes.org][My Solution]] ** TODO 0202. Happy Number :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0202-happy-number.py][0202-happy-number.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0202-happy-number.cpp][0202-happy-number.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0202-happy-number.py][0202-happy-number.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0202-happy-number.cpp][0202-happy-number.cpp]] - LeetCode: [[https://leetcode.com/problems/happy-number/][happy-number/]] - Video: [[https://youtube.com/watch?v=ljz85bxOYJ0][explanation]] +- Notes: [[../../org/cpp/dsa/math-geometry/0202-happy-number.org][My Solution]] ** TODO 0066. Plus One :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0066-plus-one.py][0066-plus-one.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0066-plus-one.cpp][0066-plus-one.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0066-plus-one.py][0066-plus-one.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0066-plus-one.cpp][0066-plus-one.cpp]] - LeetCode: [[https://leetcode.com/problems/plus-one/][plus-one/]] - Video: [[https://youtube.com/watch?v=jIaA8boiG1s][explanation]] +- Notes: [[../../org/cpp/dsa/math-geometry/0066-plus-one.org][My Solution]] ** TODO 0009. Palindrome Number :easy: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0009-palindrome-number.py][0009-palindrome-number.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0009-palindrome-number.cpp][0009-palindrome-number.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0009-palindrome-number.py][0009-palindrome-number.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0009-palindrome-number.cpp][0009-palindrome-number.cpp]] - LeetCode: [[https://leetcode.com/problems/palindrome-number/][palindrome-number/]] - Video: [[https://youtube.com/watch?v=yubRKwixN-U][explanation]] +- Notes: [[../../org/cpp/dsa/math-geometry/0009-palindrome-number.org][My Solution]] ** TODO 0012. Integer to Roman :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0012-integer-to-roman.py][0012-integer-to-roman.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0012-integer-to-roman.cpp][0012-integer-to-roman.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0012-integer-to-roman.py][0012-integer-to-roman.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0012-integer-to-roman.cpp][0012-integer-to-roman.cpp]] - LeetCode: [[https://leetcode.com/problems/integer-to-roman/][integer-to-roman/]] - Video: [[https://youtube.com/watch?v=ohBNdSJyLh8][explanation]] +- Notes: [[../../org/cpp/dsa/math-geometry/0012-integer-to-roman.org][My Solution]] ** TODO 0050. Pow(x, n) :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0050-powx-n.py][0050-powx-n.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0050-powx-n.cpp][0050-powx-n.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0050-powx-n.py][0050-powx-n.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0050-powx-n.cpp][0050-powx-n.cpp]] - LeetCode: [[https://leetcode.com/problems/powx-n/][powx-n/]] - Video: [[https://youtube.com/watch?v=g9YQyYi4IQQ][explanation]] +- Notes: [[../../org/cpp/dsa/math-geometry/0050-powx-n.org][My Solution]] ** TODO 2698. Find the Punishment Number of an Integer :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/2698-find-the-punishment-number-of-an-integer.py][2698-find-the-punishment-number-of-an-integer.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2698-find-the-punishment-number-of-an-integer.cpp][2698-find-the-punishment-number-of-an-integer.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/2698-find-the-punishment-number-of-an-integer.py][2698-find-the-punishment-number-of-an-integer.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2698-find-the-punishment-number-of-an-integer.cpp][2698-find-the-punishment-number-of-an-integer.cpp]] - LeetCode: [[https://leetcode.com/problems/find-the-punishment-number-of-an-integer/][find-the-punishment-number-of-an-integer/]] - Video: [[https://youtube.com/watch?v=LWgksJP-5SA][explanation]] +- Notes: [[../../org/cpp/dsa/math-geometry/2698-find-the-punishment-number-of-an-integer.org][My Solution]] ** TODO 1780. Check if Number is a Sum of Powers of Three :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1780-check-if-number-is-a-sum-of-powers-of-three.py][1780-check-if-number-is-a-sum-of-powers-of-three.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1780-check-if-number-is-a-sum-of-powers-of-three.cpp][1780-check-if-number-is-a-sum-of-powers-of-three.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1780-check-if-number-is-a-sum-of-powers-of-three.py][1780-check-if-number-is-a-sum-of-powers-of-three.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1780-check-if-number-is-a-sum-of-powers-of-three.cpp][1780-check-if-number-is-a-sum-of-powers-of-three.cpp]] - LeetCode: [[https://leetcode.com/problems/check-if-number-is-a-sum-of-powers-of-three/][check-if-number-is-a-sum-of-powers-of-three/]] - Video: [[https://youtube.com/watch?v=99ExTh_0Ycg][explanation]] +- Notes: [[../../org/cpp/dsa/math-geometry/1780-check-if-number-is-a-sum-of-powers-of-three.org][My Solution]] ** TODO 0043. Multiply Strings :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0043-multiply-strings.py][0043-multiply-strings.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0043-multiply-strings.cpp][0043-multiply-strings.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0043-multiply-strings.py][0043-multiply-strings.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0043-multiply-strings.cpp][0043-multiply-strings.cpp]] - LeetCode: [[https://leetcode.com/problems/multiply-strings/][multiply-strings/]] - Video: [[https://youtube.com/watch?v=1vZswirL8Y8][explanation]] +- Notes: [[../../org/cpp/dsa/math-geometry/0043-multiply-strings.org][My Solution]] ** TODO 2013. Detect Squares :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/2013-detect-squares.py][2013-detect-squares.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2013-detect-squares.cpp][2013-detect-squares.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/2013-detect-squares.py][2013-detect-squares.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/2013-detect-squares.cpp][2013-detect-squares.cpp]] - LeetCode: [[https://leetcode.com/problems/detect-squares/][detect-squares/]] - Video: [[https://youtube.com/watch?v=bahebearrDc][explanation]] +- Notes: [[../../org/cpp/dsa/math-geometry/2013-detect-squares.org][My Solution]] ** TODO 0296. Best Meeting Point :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0296-best-meeting-point.py][0296-best-meeting-point.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0296-best-meeting-point.cpp][0296-best-meeting-point.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0296-best-meeting-point.py][0296-best-meeting-point.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0296-best-meeting-point.cpp][0296-best-meeting-point.cpp]] - LeetCode: [[https://leetcode.com/problems/best-meeting-point/][best-meeting-point/]] +- Notes: [[../../org/cpp/dsa/math-geometry/0296-best-meeting-point.org][My Solution]] * TODO 2-D Dynamic Programming [/] ** TODO 0062. Unique Paths :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0062-unique-paths.py][0062-unique-paths.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0062-unique-paths.cpp][0062-unique-paths.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0062-unique-paths.py][0062-unique-paths.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0062-unique-paths.cpp][0062-unique-paths.cpp]] - LeetCode: [[https://leetcode.com/problems/unique-paths/][unique-paths/]] - Video: [[https://youtube.com/watch?v=IlEsdxuD4lY][explanation]] +- Notes: [[../../org/cpp/dsa/2-d-dynamic-programming/0062-unique-paths.org][My Solution]] ** TODO 1143. Longest Common Subsequence :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1143-longest-common-subsequence.py][1143-longest-common-subsequence.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1143-longest-common-subsequence.cpp][1143-longest-common-subsequence.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1143-longest-common-subsequence.py][1143-longest-common-subsequence.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1143-longest-common-subsequence.cpp][1143-longest-common-subsequence.cpp]] - LeetCode: [[https://leetcode.com/problems/longest-common-subsequence/][longest-common-subsequence/]] - Video: [[https://youtube.com/watch?v=Ua0GhsJSlWM][explanation]] +- Notes: [[../../org/cpp/dsa/2-d-dynamic-programming/1143-longest-common-subsequence.org][My Solution]] ** TODO 0309. Best Time to Buy And Sell Stock With Cooldown :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0309-best-time-to-buy-and-sell-stock-with-cooldown.py][0309-best-time-to-buy-and-sell-stock-with-cooldown.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0309-best-time-to-buy-and-sell-stock-with-cooldown.cpp][0309-best-time-to-buy-and-sell-stock-with-cooldown.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0309-best-time-to-buy-and-sell-stock-with-cooldown.py][0309-best-time-to-buy-and-sell-stock-with-cooldown.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0309-best-time-to-buy-and-sell-stock-with-cooldown.cpp][0309-best-time-to-buy-and-sell-stock-with-cooldown.cpp]] - LeetCode: [[https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/][best-time-to-buy-and-sell-stock-with-cooldown/]] - Video: [[https://youtube.com/watch?v=I7j0F7AHpb8][explanation]] +- Notes: [[../../org/cpp/dsa/2-d-dynamic-programming/0309-best-time-to-buy-and-sell-stock-with-cooldown.org][My Solution]] ** TODO 0518. Coin Change II :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0518-coin-change-ii.py][0518-coin-change-ii.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0518-coin-change-ii.cpp][0518-coin-change-ii.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0518-coin-change-ii.py][0518-coin-change-ii.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0518-coin-change-ii.cpp][0518-coin-change-ii.cpp]] - LeetCode: [[https://leetcode.com/problems/coin-change-ii/][coin-change-ii/]] - Video: [[https://youtube.com/watch?v=Mjy4hd2xgrs][explanation]] +- Notes: [[../../org/cpp/dsa/2-d-dynamic-programming/0518-coin-change-ii.org][My Solution]] ** TODO 0494. Target Sum :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0494-target-sum.py][0494-target-sum.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0494-target-sum.cpp][0494-target-sum.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0494-target-sum.py][0494-target-sum.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0494-target-sum.cpp][0494-target-sum.cpp]] - LeetCode: [[https://leetcode.com/problems/target-sum/][target-sum/]] - Video: [[https://youtube.com/watch?v=dwMOrl85Xes][explanation]] +- Notes: [[../../org/cpp/dsa/2-d-dynamic-programming/0494-target-sum.org][My Solution]] ** TODO 0097. Interleaving String :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0097-interleaving-string.py][0097-interleaving-string.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0097-interleaving-string.cpp][0097-interleaving-string.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0097-interleaving-string.py][0097-interleaving-string.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0097-interleaving-string.cpp][0097-interleaving-string.cpp]] - LeetCode: [[https://leetcode.com/problems/interleaving-string/][interleaving-string/]] - Video: [[https://youtube.com/watch?v=3Rw3p9LrgvE][explanation]] +- Notes: [[../../org/cpp/dsa/2-d-dynamic-programming/0097-interleaving-string.org][My Solution]] ** TODO 0329. Longest Increasing Path In a Matrix :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0329-longest-increasing-path-in-a-matrix.py][0329-longest-increasing-path-in-a-matrix.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0329-longest-increasing-path-in-a-matrix.cpp][0329-longest-increasing-path-in-a-matrix.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0329-longest-increasing-path-in-a-matrix.py][0329-longest-increasing-path-in-a-matrix.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0329-longest-increasing-path-in-a-matrix.cpp][0329-longest-increasing-path-in-a-matrix.cpp]] - LeetCode: [[https://leetcode.com/problems/longest-increasing-path-in-a-matrix/][longest-increasing-path-in-a-matrix/]] - Video: [[https://youtube.com/watch?v=wCc_nd-GiEc][explanation]] +- Notes: [[../../org/cpp/dsa/2-d-dynamic-programming/0329-longest-increasing-path-in-a-matrix.org][My Solution]] ** TODO 1911. Maximum Alternating Subsequence Sum :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1911-maximum-alternating-subsequence-sum.py][1911-maximum-alternating-subsequence-sum.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1911-maximum-alternating-subsequence-sum.cpp][1911-maximum-alternating-subsequence-sum.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1911-maximum-alternating-subsequence-sum.py][1911-maximum-alternating-subsequence-sum.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1911-maximum-alternating-subsequence-sum.cpp][1911-maximum-alternating-subsequence-sum.cpp]] - LeetCode: [[https://leetcode.com/problems/maximum-alternating-subsequence-sum/][maximum-alternating-subsequence-sum/]] - Video: [[https://youtube.com/watch?v=4v42XOuU1XA][explanation]] +- Notes: [[../../org/cpp/dsa/2-d-dynamic-programming/1911-maximum-alternating-subsequence-sum.org][My Solution]] ** TODO 0115. Distinct Subsequences :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0115-distinct-subsequences.py][0115-distinct-subsequences.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0115-distinct-subsequences.cpp][0115-distinct-subsequences.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0115-distinct-subsequences.py][0115-distinct-subsequences.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0115-distinct-subsequences.cpp][0115-distinct-subsequences.cpp]] - LeetCode: [[https://leetcode.com/problems/distinct-subsequences/][distinct-subsequences/]] - Video: [[https://youtube.com/watch?v=-RDzMJ33nx8][explanation]] +- Notes: [[../../org/cpp/dsa/2-d-dynamic-programming/0115-distinct-subsequences.org][My Solution]] ** TODO 0072. Edit Distance :medium: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0072-edit-distance.py][0072-edit-distance.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0072-edit-distance.cpp][0072-edit-distance.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0072-edit-distance.py][0072-edit-distance.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0072-edit-distance.cpp][0072-edit-distance.cpp]] - LeetCode: [[https://leetcode.com/problems/edit-distance/][edit-distance/]] - Video: [[https://youtube.com/watch?v=XYi2-LPrwm4][explanation]] +- Notes: [[../../org/cpp/dsa/2-d-dynamic-programming/0072-edit-distance.org][My Solution]] ** TODO 1220. Count Vowels Permutation :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/1220-count-vowels-permutation.py][1220-count-vowels-permutation.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1220-count-vowels-permutation.cpp][1220-count-vowels-permutation.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/1220-count-vowels-permutation.py][1220-count-vowels-permutation.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/1220-count-vowels-permutation.cpp][1220-count-vowels-permutation.cpp]] - LeetCode: [[https://leetcode.com/problems/count-vowels-permutation/][count-vowels-permutation/]] - Video: [[https://youtube.com/watch?v=VUVpTZVa7Ls][explanation]] +- Notes: [[../../org/cpp/dsa/2-d-dynamic-programming/1220-count-vowels-permutation.org][My Solution]] ** TODO 0312. Burst Balloons :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0312-burst-balloons.py][0312-burst-balloons.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0312-burst-balloons.cpp][0312-burst-balloons.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0312-burst-balloons.py][0312-burst-balloons.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0312-burst-balloons.cpp][0312-burst-balloons.cpp]] - LeetCode: [[https://leetcode.com/problems/burst-balloons/][burst-balloons/]] - Video: [[https://youtube.com/watch?v=VFskby7lUbw][explanation]] +- Notes: [[../../org/cpp/dsa/2-d-dynamic-programming/0312-burst-balloons.org][My Solution]] ** TODO 0010. Regular Expression Matching :hard: -- Python: [[https://github.com/neetcode-gh/leetcode/blob/main/python/0010-regular-expression-matching.py][0010-regular-expression-matching.py]] -- C++: [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0010-regular-expression-matching.cpp][0010-regular-expression-matching.cpp]] +*** Python +- [[https://github.com/neetcode-gh/leetcode/blob/main/python/0010-regular-expression-matching.py][0010-regular-expression-matching.py]] +*** C++ +- [[https://github.com/neetcode-gh/leetcode/blob/main/cpp/0010-regular-expression-matching.cpp][0010-regular-expression-matching.cpp]] - LeetCode: [[https://leetcode.com/problems/regular-expression-matching/][regular-expression-matching/]] - Video: [[https://youtube.com/watch?v=HAA8mgxlov8][explanation]] +- Notes: [[../../org/cpp/dsa/2-d-dynamic-programming/0010-regular-expression-matching.org][My Solution]] diff --git a/leetcode/scaffold-notes.mjs b/leetcode/scaffold-notes.mjs new file mode 100644 index 0000000..0d2f708 --- /dev/null +++ b/leetcode/scaffold-notes.mjs @@ -0,0 +1,55 @@ +import { readFileSync, writeFileSync, existsSync } from "node:fs"; +import { join, dirname } from "node:path"; +import { fileURLToPath } from "node:url"; + +const __dirname = dirname(fileURLToPath(import.meta.url)); + +const roadmap = readFileSync(join(__dirname, "out/roadmap.org"), "utf8"); +const dsaDir = join(__dirname, "../org/cpp/dsa"); + +const topicSlug = (name) => + name + .toLowerCase() + .replace(/[^a-z0-9]+/g, "-") + .replace(/(^-|-$)/g, ""); + +let currentTopic = ""; +let count = 0; + +for (const line of roadmap.split("\n")) { + const topicMatch = line.match(/^\* TODO (.+?) \[/); + if (topicMatch) { + currentTopic = topicSlug(topicMatch[1]); + continue; + } + + const problemMatch = line.match( + /^\*\* TODO (\d+)\. (.+?) :(easy|medium|hard):$/ + ); + if (problemMatch) { + const [, num, name, diff] = problemMatch; + const slug = name + .toLowerCase() + .replace(/[^a-z0-9]+/g, "-") + .replace(/(^-|-$)/g, ""); + const code = `${num}-${slug}`; + const filePath = join(dsaDir, currentTopic, `${code}.org`); + + if (existsSync(filePath)) continue; + + const relPath = `../../../../leetcode/out/roadmap.org::*${num}. ${name}`; + const content = `* TODO ${num}. ${name} :${diff}: +:PROPERTIES: +:NEETCODE: [[${relPath}][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src +`; + writeFileSync(filePath, content); + count++; + } +} + +console.log(`Created ${count} note files`); diff --git a/org/cpp/dsa/1-d-dynamic-programming/0005-longest-palindromic-substring.org b/org/cpp/dsa/1-d-dynamic-programming/0005-longest-palindromic-substring.org new file mode 100644 index 0000000..3ffbf44 --- /dev/null +++ b/org/cpp/dsa/1-d-dynamic-programming/0005-longest-palindromic-substring.org @@ -0,0 +1,8 @@ +* TODO 0005. Longest Palindromic Substring :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0005. Longest Palindromic Substring][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/1-d-dynamic-programming/0070-climbing-stairs.org b/org/cpp/dsa/1-d-dynamic-programming/0070-climbing-stairs.org new file mode 100644 index 0000000..f19b16c --- /dev/null +++ b/org/cpp/dsa/1-d-dynamic-programming/0070-climbing-stairs.org @@ -0,0 +1,8 @@ +* TODO 0070. Climbing Stairs :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0070. Climbing Stairs][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/1-d-dynamic-programming/0091-decode-ways.org b/org/cpp/dsa/1-d-dynamic-programming/0091-decode-ways.org new file mode 100644 index 0000000..abd604b --- /dev/null +++ b/org/cpp/dsa/1-d-dynamic-programming/0091-decode-ways.org @@ -0,0 +1,8 @@ +* TODO 0091. Decode Ways :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0091. Decode Ways][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/1-d-dynamic-programming/0139-word-break.org b/org/cpp/dsa/1-d-dynamic-programming/0139-word-break.org new file mode 100644 index 0000000..232443a --- /dev/null +++ b/org/cpp/dsa/1-d-dynamic-programming/0139-word-break.org @@ -0,0 +1,8 @@ +* TODO 0139. Word Break :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0139. Word Break][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/1-d-dynamic-programming/0152-maximum-product-subarray.org b/org/cpp/dsa/1-d-dynamic-programming/0152-maximum-product-subarray.org new file mode 100644 index 0000000..82350db --- /dev/null +++ b/org/cpp/dsa/1-d-dynamic-programming/0152-maximum-product-subarray.org @@ -0,0 +1,8 @@ +* TODO 0152. Maximum Product Subarray :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0152. Maximum Product Subarray][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/1-d-dynamic-programming/0198-house-robber.org b/org/cpp/dsa/1-d-dynamic-programming/0198-house-robber.org new file mode 100644 index 0000000..f842db9 --- /dev/null +++ b/org/cpp/dsa/1-d-dynamic-programming/0198-house-robber.org @@ -0,0 +1,8 @@ +* TODO 0198. House Robber :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0198. House Robber][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/1-d-dynamic-programming/0213-house-robber-ii.org b/org/cpp/dsa/1-d-dynamic-programming/0213-house-robber-ii.org new file mode 100644 index 0000000..3ac3c2d --- /dev/null +++ b/org/cpp/dsa/1-d-dynamic-programming/0213-house-robber-ii.org @@ -0,0 +1,8 @@ +* TODO 0213. House Robber II :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0213. House Robber II][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/1-d-dynamic-programming/0300-longest-increasing-subsequence.org b/org/cpp/dsa/1-d-dynamic-programming/0300-longest-increasing-subsequence.org new file mode 100644 index 0000000..ffd0ef9 --- /dev/null +++ b/org/cpp/dsa/1-d-dynamic-programming/0300-longest-increasing-subsequence.org @@ -0,0 +1,8 @@ +* TODO 0300. Longest Increasing Subsequence :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0300. Longest Increasing Subsequence][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/1-d-dynamic-programming/0322-coin-change.org b/org/cpp/dsa/1-d-dynamic-programming/0322-coin-change.org new file mode 100644 index 0000000..92b155a --- /dev/null +++ b/org/cpp/dsa/1-d-dynamic-programming/0322-coin-change.org @@ -0,0 +1,8 @@ +* TODO 0322. Coin Change :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0322. Coin Change][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/1-d-dynamic-programming/0416-partition-equal-subset-sum.org b/org/cpp/dsa/1-d-dynamic-programming/0416-partition-equal-subset-sum.org new file mode 100644 index 0000000..f22dbd9 --- /dev/null +++ b/org/cpp/dsa/1-d-dynamic-programming/0416-partition-equal-subset-sum.org @@ -0,0 +1,8 @@ +* TODO 0416. Partition Equal Subset Sum :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0416. Partition Equal Subset Sum][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/1-d-dynamic-programming/0647-palindromic-substrings.org b/org/cpp/dsa/1-d-dynamic-programming/0647-palindromic-substrings.org new file mode 100644 index 0000000..61bd6d6 --- /dev/null +++ b/org/cpp/dsa/1-d-dynamic-programming/0647-palindromic-substrings.org @@ -0,0 +1,8 @@ +* TODO 0647. Palindromic Substrings :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0647. Palindromic Substrings][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/1-d-dynamic-programming/0656-coin-path.org b/org/cpp/dsa/1-d-dynamic-programming/0656-coin-path.org new file mode 100644 index 0000000..5fee47c --- /dev/null +++ b/org/cpp/dsa/1-d-dynamic-programming/0656-coin-path.org @@ -0,0 +1,8 @@ +* TODO 0656. Coin Path :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0656. Coin Path][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/1-d-dynamic-programming/0746-min-cost-climbing-stairs.org b/org/cpp/dsa/1-d-dynamic-programming/0746-min-cost-climbing-stairs.org new file mode 100644 index 0000000..b43afb1 --- /dev/null +++ b/org/cpp/dsa/1-d-dynamic-programming/0746-min-cost-climbing-stairs.org @@ -0,0 +1,8 @@ +* TODO 0746. Min Cost Climbing Stairs :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0746. Min Cost Climbing Stairs][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/2-d-dynamic-programming/0010-regular-expression-matching.org b/org/cpp/dsa/2-d-dynamic-programming/0010-regular-expression-matching.org new file mode 100644 index 0000000..d9ffe57 --- /dev/null +++ b/org/cpp/dsa/2-d-dynamic-programming/0010-regular-expression-matching.org @@ -0,0 +1,8 @@ +* TODO 0010. Regular Expression Matching :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0010. Regular Expression Matching][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/2-d-dynamic-programming/0062-unique-paths.org b/org/cpp/dsa/2-d-dynamic-programming/0062-unique-paths.org new file mode 100644 index 0000000..69d4398 --- /dev/null +++ b/org/cpp/dsa/2-d-dynamic-programming/0062-unique-paths.org @@ -0,0 +1,8 @@ +* TODO 0062. Unique Paths :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0062. Unique Paths][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/2-d-dynamic-programming/0072-edit-distance.org b/org/cpp/dsa/2-d-dynamic-programming/0072-edit-distance.org new file mode 100644 index 0000000..cf4bd04 --- /dev/null +++ b/org/cpp/dsa/2-d-dynamic-programming/0072-edit-distance.org @@ -0,0 +1,8 @@ +* TODO 0072. Edit Distance :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0072. Edit Distance][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/2-d-dynamic-programming/0097-interleaving-string.org b/org/cpp/dsa/2-d-dynamic-programming/0097-interleaving-string.org new file mode 100644 index 0000000..2786196 --- /dev/null +++ b/org/cpp/dsa/2-d-dynamic-programming/0097-interleaving-string.org @@ -0,0 +1,8 @@ +* TODO 0097. Interleaving String :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0097. Interleaving String][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/2-d-dynamic-programming/0115-distinct-subsequences.org b/org/cpp/dsa/2-d-dynamic-programming/0115-distinct-subsequences.org new file mode 100644 index 0000000..ee939b4 --- /dev/null +++ b/org/cpp/dsa/2-d-dynamic-programming/0115-distinct-subsequences.org @@ -0,0 +1,8 @@ +* TODO 0115. Distinct Subsequences :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0115. Distinct Subsequences][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/2-d-dynamic-programming/0309-best-time-to-buy-and-sell-stock-with-cooldown.org b/org/cpp/dsa/2-d-dynamic-programming/0309-best-time-to-buy-and-sell-stock-with-cooldown.org new file mode 100644 index 0000000..b306666 --- /dev/null +++ b/org/cpp/dsa/2-d-dynamic-programming/0309-best-time-to-buy-and-sell-stock-with-cooldown.org @@ -0,0 +1,8 @@ +* TODO 0309. Best Time to Buy And Sell Stock With Cooldown :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0309. Best Time to Buy And Sell Stock With Cooldown][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/2-d-dynamic-programming/0312-burst-balloons.org b/org/cpp/dsa/2-d-dynamic-programming/0312-burst-balloons.org new file mode 100644 index 0000000..9be65b7 --- /dev/null +++ b/org/cpp/dsa/2-d-dynamic-programming/0312-burst-balloons.org @@ -0,0 +1,8 @@ +* TODO 0312. Burst Balloons :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0312. Burst Balloons][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/2-d-dynamic-programming/0329-longest-increasing-path-in-a-matrix.org b/org/cpp/dsa/2-d-dynamic-programming/0329-longest-increasing-path-in-a-matrix.org new file mode 100644 index 0000000..046251a --- /dev/null +++ b/org/cpp/dsa/2-d-dynamic-programming/0329-longest-increasing-path-in-a-matrix.org @@ -0,0 +1,8 @@ +* TODO 0329. Longest Increasing Path In a Matrix :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0329. Longest Increasing Path In a Matrix][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/2-d-dynamic-programming/0494-target-sum.org b/org/cpp/dsa/2-d-dynamic-programming/0494-target-sum.org new file mode 100644 index 0000000..4c8b5b5 --- /dev/null +++ b/org/cpp/dsa/2-d-dynamic-programming/0494-target-sum.org @@ -0,0 +1,8 @@ +* TODO 0494. Target Sum :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0494. Target Sum][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/2-d-dynamic-programming/0518-coin-change-ii.org b/org/cpp/dsa/2-d-dynamic-programming/0518-coin-change-ii.org new file mode 100644 index 0000000..3927cd3 --- /dev/null +++ b/org/cpp/dsa/2-d-dynamic-programming/0518-coin-change-ii.org @@ -0,0 +1,8 @@ +* TODO 0518. Coin Change II :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0518. Coin Change II][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/2-d-dynamic-programming/1143-longest-common-subsequence.org b/org/cpp/dsa/2-d-dynamic-programming/1143-longest-common-subsequence.org new file mode 100644 index 0000000..6a6bcfe --- /dev/null +++ b/org/cpp/dsa/2-d-dynamic-programming/1143-longest-common-subsequence.org @@ -0,0 +1,8 @@ +* TODO 1143. Longest Common Subsequence :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1143. Longest Common Subsequence][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/2-d-dynamic-programming/1220-count-vowels-permutation.org b/org/cpp/dsa/2-d-dynamic-programming/1220-count-vowels-permutation.org new file mode 100644 index 0000000..266c81f --- /dev/null +++ b/org/cpp/dsa/2-d-dynamic-programming/1220-count-vowels-permutation.org @@ -0,0 +1,8 @@ +* TODO 1220. Count Vowels Permutation :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1220. Count Vowels Permutation][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/2-d-dynamic-programming/1911-maximum-alternating-subsequence-sum.org b/org/cpp/dsa/2-d-dynamic-programming/1911-maximum-alternating-subsequence-sum.org new file mode 100644 index 0000000..163190a --- /dev/null +++ b/org/cpp/dsa/2-d-dynamic-programming/1911-maximum-alternating-subsequence-sum.org @@ -0,0 +1,8 @@ +* TODO 1911. Maximum Alternating Subsequence Sum :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1911. Maximum Alternating Subsequence Sum][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/advanced-graphs/0269-alien-dictionary.org b/org/cpp/dsa/advanced-graphs/0269-alien-dictionary.org new file mode 100644 index 0000000..6246cf9 --- /dev/null +++ b/org/cpp/dsa/advanced-graphs/0269-alien-dictionary.org @@ -0,0 +1,8 @@ +* TODO 0269. Alien Dictionary :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0269. Alien Dictionary][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/advanced-graphs/0332-reconstruct-itinerary.org b/org/cpp/dsa/advanced-graphs/0332-reconstruct-itinerary.org new file mode 100644 index 0000000..eb74e45 --- /dev/null +++ b/org/cpp/dsa/advanced-graphs/0332-reconstruct-itinerary.org @@ -0,0 +1,8 @@ +* TODO 0332. Reconstruct Itinerary :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0332. Reconstruct Itinerary][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/advanced-graphs/0743-network-delay-time.org b/org/cpp/dsa/advanced-graphs/0743-network-delay-time.org new file mode 100644 index 0000000..0077bc7 --- /dev/null +++ b/org/cpp/dsa/advanced-graphs/0743-network-delay-time.org @@ -0,0 +1,8 @@ +* TODO 0743. Network Delay Time :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0743. Network Delay Time][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/advanced-graphs/0778-swim-in-rising-water.org b/org/cpp/dsa/advanced-graphs/0778-swim-in-rising-water.org new file mode 100644 index 0000000..e303f61 --- /dev/null +++ b/org/cpp/dsa/advanced-graphs/0778-swim-in-rising-water.org @@ -0,0 +1,8 @@ +* TODO 0778. Swim In Rising Water :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0778. Swim In Rising Water][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/advanced-graphs/0787-cheapest-flights-within-k-stops.org b/org/cpp/dsa/advanced-graphs/0787-cheapest-flights-within-k-stops.org new file mode 100644 index 0000000..0693773 --- /dev/null +++ b/org/cpp/dsa/advanced-graphs/0787-cheapest-flights-within-k-stops.org @@ -0,0 +1,8 @@ +* TODO 0787. Cheapest Flights Within K Stops :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0787. Cheapest Flights Within K Stops][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/advanced-graphs/1584-min-cost-to-connect-all-points.org b/org/cpp/dsa/advanced-graphs/1584-min-cost-to-connect-all-points.org new file mode 100644 index 0000000..d1cd068 --- /dev/null +++ b/org/cpp/dsa/advanced-graphs/1584-min-cost-to-connect-all-points.org @@ -0,0 +1,8 @@ +* TODO 1584. Min Cost to Connect All Points :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1584. Min Cost to Connect All Points][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/advanced-graphs/2493-divide-nodes-into-the-maximum-number-of-groups.org b/org/cpp/dsa/advanced-graphs/2493-divide-nodes-into-the-maximum-number-of-groups.org new file mode 100644 index 0000000..95f410a --- /dev/null +++ b/org/cpp/dsa/advanced-graphs/2493-divide-nodes-into-the-maximum-number-of-groups.org @@ -0,0 +1,8 @@ +* TODO 2493. Divide Nodes Into the Maximum Number of Groups :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*2493. Divide Nodes Into the Maximum Number of Groups][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/advanced-graphs/2812-find-the-safest-path-in-a-grid.org b/org/cpp/dsa/advanced-graphs/2812-find-the-safest-path-in-a-grid.org new file mode 100644 index 0000000..84a728d --- /dev/null +++ b/org/cpp/dsa/advanced-graphs/2812-find-the-safest-path-in-a-grid.org @@ -0,0 +1,8 @@ +* TODO 2812. Find the Safest Path in a Grid :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*2812. Find the Safest Path in a Grid][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/arrays-hashing/0001-two-sum.org b/org/cpp/dsa/arrays-hashing/0001-two-sum.org new file mode 100644 index 0000000..4c3d77b --- /dev/null +++ b/org/cpp/dsa/arrays-hashing/0001-two-sum.org @@ -0,0 +1,8 @@ +* TODO 0001. Two Sum :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0001. Two Sum][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/arrays-hashing/0036-valid-sudoku.org b/org/cpp/dsa/arrays-hashing/0036-valid-sudoku.org new file mode 100644 index 0000000..648f024 --- /dev/null +++ b/org/cpp/dsa/arrays-hashing/0036-valid-sudoku.org @@ -0,0 +1,8 @@ +* TODO 0036. Valid Sudoku :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0036. Valid Sudoku][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/arrays-hashing/0049-group-anagrams.org b/org/cpp/dsa/arrays-hashing/0049-group-anagrams.org new file mode 100644 index 0000000..5833202 --- /dev/null +++ b/org/cpp/dsa/arrays-hashing/0049-group-anagrams.org @@ -0,0 +1,8 @@ +* TODO 0049. Group Anagrams :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0049. Group Anagrams][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/arrays-hashing/0128-longest-consecutive-sequence.org b/org/cpp/dsa/arrays-hashing/0128-longest-consecutive-sequence.org new file mode 100644 index 0000000..cadb8da --- /dev/null +++ b/org/cpp/dsa/arrays-hashing/0128-longest-consecutive-sequence.org @@ -0,0 +1,8 @@ +* TODO 0128. Longest Consecutive Sequence :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0128. Longest Consecutive Sequence][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/arrays-hashing/0217-contains-duplicate.org b/org/cpp/dsa/arrays-hashing/0217-contains-duplicate.org new file mode 100644 index 0000000..c9b009f --- /dev/null +++ b/org/cpp/dsa/arrays-hashing/0217-contains-duplicate.org @@ -0,0 +1,8 @@ +* TODO 0217. Contains Duplicate :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0217. Contains Duplicate][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/arrays-hashing/0238-product-of-array-except-self.org b/org/cpp/dsa/arrays-hashing/0238-product-of-array-except-self.org new file mode 100644 index 0000000..4e04854 --- /dev/null +++ b/org/cpp/dsa/arrays-hashing/0238-product-of-array-except-self.org @@ -0,0 +1,8 @@ +* TODO 0238. Product of Array Except Self :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0238. Product of Array Except Self][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/arrays-hashing/0242-valid-anagram.org b/org/cpp/dsa/arrays-hashing/0242-valid-anagram.org new file mode 100644 index 0000000..887a4b0 --- /dev/null +++ b/org/cpp/dsa/arrays-hashing/0242-valid-anagram.org @@ -0,0 +1,8 @@ +* TODO 0242. Valid Anagram :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0242. Valid Anagram][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/arrays-hashing/0271-encode-and-decode-strings.org b/org/cpp/dsa/arrays-hashing/0271-encode-and-decode-strings.org new file mode 100644 index 0000000..098bfd2 --- /dev/null +++ b/org/cpp/dsa/arrays-hashing/0271-encode-and-decode-strings.org @@ -0,0 +1,8 @@ +* TODO 0271. Encode and Decode Strings :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0271. Encode and Decode Strings][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/arrays-hashing/0347-top-k-frequent-elements.org b/org/cpp/dsa/arrays-hashing/0347-top-k-frequent-elements.org new file mode 100644 index 0000000..17bad5e --- /dev/null +++ b/org/cpp/dsa/arrays-hashing/0347-top-k-frequent-elements.org @@ -0,0 +1,8 @@ +* TODO 0347. Top K Frequent Elements :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0347. Top K Frequent Elements][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/arrays-hashing/1408-string-matching-in-an-array.org b/org/cpp/dsa/arrays-hashing/1408-string-matching-in-an-array.org new file mode 100644 index 0000000..39d38be --- /dev/null +++ b/org/cpp/dsa/arrays-hashing/1408-string-matching-in-an-array.org @@ -0,0 +1,8 @@ +* TODO 1408. String Matching in an Array :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1408. String Matching in an Array][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/arrays-hashing/1769-minimum-number-of-operations-to-move-all-balls-to-each-box.org b/org/cpp/dsa/arrays-hashing/1769-minimum-number-of-operations-to-move-all-balls-to-each-box.org new file mode 100644 index 0000000..bc1c5b8 --- /dev/null +++ b/org/cpp/dsa/arrays-hashing/1769-minimum-number-of-operations-to-move-all-balls-to-each-box.org @@ -0,0 +1,8 @@ +* TODO 1769. Minimum Number of Operations to Move All Balls to Each Box :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1769. Minimum Number of Operations to Move All Balls to Each Box][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/arrays-hashing/2678-number-of-senior-citizens.org b/org/cpp/dsa/arrays-hashing/2678-number-of-senior-citizens.org new file mode 100644 index 0000000..563858a --- /dev/null +++ b/org/cpp/dsa/arrays-hashing/2678-number-of-senior-citizens.org @@ -0,0 +1,8 @@ +* TODO 2678. Number of Senior Citizens :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*2678. Number of Senior Citizens][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/backtracking/0017-letter-combinations-of-a-phone-number.org b/org/cpp/dsa/backtracking/0017-letter-combinations-of-a-phone-number.org new file mode 100644 index 0000000..ff1d9bc --- /dev/null +++ b/org/cpp/dsa/backtracking/0017-letter-combinations-of-a-phone-number.org @@ -0,0 +1,8 @@ +* TODO 0017. Letter Combinations of a Phone Number :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0017. Letter Combinations of a Phone Number][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/backtracking/0022-generate-parentheses.org b/org/cpp/dsa/backtracking/0022-generate-parentheses.org new file mode 100644 index 0000000..b08025a --- /dev/null +++ b/org/cpp/dsa/backtracking/0022-generate-parentheses.org @@ -0,0 +1,8 @@ +* TODO 0022. Generate Parentheses :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0022. Generate Parentheses][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/backtracking/0039-combination-sum.org b/org/cpp/dsa/backtracking/0039-combination-sum.org new file mode 100644 index 0000000..e2fbd66 --- /dev/null +++ b/org/cpp/dsa/backtracking/0039-combination-sum.org @@ -0,0 +1,8 @@ +* TODO 0039. Combination Sum :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0039. Combination Sum][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/backtracking/0040-combination-sum-ii.org b/org/cpp/dsa/backtracking/0040-combination-sum-ii.org new file mode 100644 index 0000000..9b2a4e7 --- /dev/null +++ b/org/cpp/dsa/backtracking/0040-combination-sum-ii.org @@ -0,0 +1,8 @@ +* TODO 0040. Combination Sum II :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0040. Combination Sum II][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/backtracking/0046-permutations.org b/org/cpp/dsa/backtracking/0046-permutations.org new file mode 100644 index 0000000..d0e5d28 --- /dev/null +++ b/org/cpp/dsa/backtracking/0046-permutations.org @@ -0,0 +1,8 @@ +* TODO 0046. Permutations :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0046. Permutations][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/backtracking/0051-n-queens.org b/org/cpp/dsa/backtracking/0051-n-queens.org new file mode 100644 index 0000000..f5fe332 --- /dev/null +++ b/org/cpp/dsa/backtracking/0051-n-queens.org @@ -0,0 +1,8 @@ +* TODO 0051. N Queens :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0051. N Queens][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/backtracking/0052-n-queens-ii.org b/org/cpp/dsa/backtracking/0052-n-queens-ii.org new file mode 100644 index 0000000..1f90c80 --- /dev/null +++ b/org/cpp/dsa/backtracking/0052-n-queens-ii.org @@ -0,0 +1,8 @@ +* TODO 0052. N Queens II :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0052. N Queens II][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/backtracking/0077-combinations.org b/org/cpp/dsa/backtracking/0077-combinations.org new file mode 100644 index 0000000..66ee6b5 --- /dev/null +++ b/org/cpp/dsa/backtracking/0077-combinations.org @@ -0,0 +1,8 @@ +* TODO 0077. Combinations :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0077. Combinations][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/backtracking/0078-subsets.org b/org/cpp/dsa/backtracking/0078-subsets.org new file mode 100644 index 0000000..7070453 --- /dev/null +++ b/org/cpp/dsa/backtracking/0078-subsets.org @@ -0,0 +1,8 @@ +* TODO 0078. Subsets :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0078. Subsets][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/backtracking/0079-word-search.org b/org/cpp/dsa/backtracking/0079-word-search.org new file mode 100644 index 0000000..d4e145b --- /dev/null +++ b/org/cpp/dsa/backtracking/0079-word-search.org @@ -0,0 +1,8 @@ +* TODO 0079. Word Search :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0079. Word Search][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/backtracking/0090-subsets-ii.org b/org/cpp/dsa/backtracking/0090-subsets-ii.org new file mode 100644 index 0000000..087fe40 --- /dev/null +++ b/org/cpp/dsa/backtracking/0090-subsets-ii.org @@ -0,0 +1,8 @@ +* TODO 0090. Subsets II :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0090. Subsets II][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/backtracking/0131-palindrome-partitioning.org b/org/cpp/dsa/backtracking/0131-palindrome-partitioning.org new file mode 100644 index 0000000..4291296 --- /dev/null +++ b/org/cpp/dsa/backtracking/0131-palindrome-partitioning.org @@ -0,0 +1,8 @@ +* TODO 0131. Palindrome Partitioning :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0131. Palindrome Partitioning][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/backtracking/0351-android-unlock-patterns.org b/org/cpp/dsa/backtracking/0351-android-unlock-patterns.org new file mode 100644 index 0000000..bb94cbb --- /dev/null +++ b/org/cpp/dsa/backtracking/0351-android-unlock-patterns.org @@ -0,0 +1,8 @@ +* TODO 0351. Android Unlock Patterns :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0351. Android Unlock Patterns][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/backtracking/1079-letter-tile-possibilities.org b/org/cpp/dsa/backtracking/1079-letter-tile-possibilities.org new file mode 100644 index 0000000..cf53d89 --- /dev/null +++ b/org/cpp/dsa/backtracking/1079-letter-tile-possibilities.org @@ -0,0 +1,8 @@ +* TODO 1079. Letter Tile Possibilities :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1079. Letter Tile Possibilities][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/backtracking/1863-sum-of-all-subsets-xor-total.org b/org/cpp/dsa/backtracking/1863-sum-of-all-subsets-xor-total.org new file mode 100644 index 0000000..6a01d56 --- /dev/null +++ b/org/cpp/dsa/backtracking/1863-sum-of-all-subsets-xor-total.org @@ -0,0 +1,8 @@ +* TODO 1863. Sum of All Subsets XOR Total :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1863. Sum of All Subsets XOR Total][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/binary-search/0004-median-of-two-sorted-arrays.org b/org/cpp/dsa/binary-search/0004-median-of-two-sorted-arrays.org new file mode 100644 index 0000000..1411aff --- /dev/null +++ b/org/cpp/dsa/binary-search/0004-median-of-two-sorted-arrays.org @@ -0,0 +1,8 @@ +* TODO 0004. Median of Two Sorted Arrays :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0004. Median of Two Sorted Arrays][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/binary-search/0033-search-in-rotated-sorted-array.org b/org/cpp/dsa/binary-search/0033-search-in-rotated-sorted-array.org new file mode 100644 index 0000000..91b0869 --- /dev/null +++ b/org/cpp/dsa/binary-search/0033-search-in-rotated-sorted-array.org @@ -0,0 +1,8 @@ +* TODO 0033. Search In Rotated Sorted Array :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0033. Search In Rotated Sorted Array][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/binary-search/0074-search-a-2d-matrix.org b/org/cpp/dsa/binary-search/0074-search-a-2d-matrix.org new file mode 100644 index 0000000..e97512c --- /dev/null +++ b/org/cpp/dsa/binary-search/0074-search-a-2d-matrix.org @@ -0,0 +1,8 @@ +* TODO 0074. Search a 2D Matrix :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0074. Search a 2D Matrix][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/binary-search/0153-find-minimum-in-rotated-sorted-array.org b/org/cpp/dsa/binary-search/0153-find-minimum-in-rotated-sorted-array.org new file mode 100644 index 0000000..d4cdb76 --- /dev/null +++ b/org/cpp/dsa/binary-search/0153-find-minimum-in-rotated-sorted-array.org @@ -0,0 +1,8 @@ +* TODO 0153. Find Minimum In Rotated Sorted Array :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0153. Find Minimum In Rotated Sorted Array][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/binary-search/0704-binary-search.org b/org/cpp/dsa/binary-search/0704-binary-search.org new file mode 100644 index 0000000..8ca8a3e --- /dev/null +++ b/org/cpp/dsa/binary-search/0704-binary-search.org @@ -0,0 +1,8 @@ +* TODO 0704. Binary Search :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0704. Binary Search][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/binary-search/0719-find-k-th-smallest-pair-distance.org b/org/cpp/dsa/binary-search/0719-find-k-th-smallest-pair-distance.org new file mode 100644 index 0000000..0205e46 --- /dev/null +++ b/org/cpp/dsa/binary-search/0719-find-k-th-smallest-pair-distance.org @@ -0,0 +1,8 @@ +* TODO 0719. Find K-th Smallest Pair Distance :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0719. Find K-th Smallest Pair Distance][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/binary-search/0875-koko-eating-bananas.org b/org/cpp/dsa/binary-search/0875-koko-eating-bananas.org new file mode 100644 index 0000000..76ec1e3 --- /dev/null +++ b/org/cpp/dsa/binary-search/0875-koko-eating-bananas.org @@ -0,0 +1,8 @@ +* TODO 0875. Koko Eating Bananas :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0875. Koko Eating Bananas][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/binary-search/0981-time-based-key-value-store.org b/org/cpp/dsa/binary-search/0981-time-based-key-value-store.org new file mode 100644 index 0000000..b8af3a4 --- /dev/null +++ b/org/cpp/dsa/binary-search/0981-time-based-key-value-store.org @@ -0,0 +1,8 @@ +* TODO 0981. Time Based Key Value Store :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0981. Time Based Key Value Store][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/binary-search/2300-successful-pairs-of-spells-and-potions.org b/org/cpp/dsa/binary-search/2300-successful-pairs-of-spells-and-potions.org new file mode 100644 index 0000000..ca05c65 --- /dev/null +++ b/org/cpp/dsa/binary-search/2300-successful-pairs-of-spells-and-potions.org @@ -0,0 +1,8 @@ +* TODO 2300. Successful Pairs of Spells and Potions :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*2300. Successful Pairs of Spells and Potions][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/bit-manipulation/0007-reverse-integer.org b/org/cpp/dsa/bit-manipulation/0007-reverse-integer.org new file mode 100644 index 0000000..e64173c --- /dev/null +++ b/org/cpp/dsa/bit-manipulation/0007-reverse-integer.org @@ -0,0 +1,8 @@ +* TODO 0007. Reverse Integer :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0007. Reverse Integer][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/bit-manipulation/0136-single-number.org b/org/cpp/dsa/bit-manipulation/0136-single-number.org new file mode 100644 index 0000000..28b52dd --- /dev/null +++ b/org/cpp/dsa/bit-manipulation/0136-single-number.org @@ -0,0 +1,8 @@ +* TODO 0136. Single Number :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0136. Single Number][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/bit-manipulation/0190-reverse-bits.org b/org/cpp/dsa/bit-manipulation/0190-reverse-bits.org new file mode 100644 index 0000000..ee98cd4 --- /dev/null +++ b/org/cpp/dsa/bit-manipulation/0190-reverse-bits.org @@ -0,0 +1,8 @@ +* TODO 0190. Reverse Bits :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0190. Reverse Bits][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/bit-manipulation/0191-number-of-1-bits.org b/org/cpp/dsa/bit-manipulation/0191-number-of-1-bits.org new file mode 100644 index 0000000..ccd3906 --- /dev/null +++ b/org/cpp/dsa/bit-manipulation/0191-number-of-1-bits.org @@ -0,0 +1,8 @@ +* TODO 0191. Number of 1 Bits :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0191. Number of 1 Bits][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/bit-manipulation/0231-power-of-two.org b/org/cpp/dsa/bit-manipulation/0231-power-of-two.org new file mode 100644 index 0000000..336b739 --- /dev/null +++ b/org/cpp/dsa/bit-manipulation/0231-power-of-two.org @@ -0,0 +1,8 @@ +* TODO 0231. Power of Two :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0231. Power of Two][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/bit-manipulation/0260-single-number-iii.org b/org/cpp/dsa/bit-manipulation/0260-single-number-iii.org new file mode 100644 index 0000000..851dfa1 --- /dev/null +++ b/org/cpp/dsa/bit-manipulation/0260-single-number-iii.org @@ -0,0 +1,8 @@ +* TODO 0260. Single Number III :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0260. Single Number III][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/bit-manipulation/0268-missing-number.org b/org/cpp/dsa/bit-manipulation/0268-missing-number.org new file mode 100644 index 0000000..f488de6 --- /dev/null +++ b/org/cpp/dsa/bit-manipulation/0268-missing-number.org @@ -0,0 +1,8 @@ +* TODO 0268. Missing Number :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0268. Missing Number][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/bit-manipulation/0338-counting-bits.org b/org/cpp/dsa/bit-manipulation/0338-counting-bits.org new file mode 100644 index 0000000..3740852 --- /dev/null +++ b/org/cpp/dsa/bit-manipulation/0338-counting-bits.org @@ -0,0 +1,8 @@ +* TODO 0338. Counting Bits :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0338. Counting Bits][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/bit-manipulation/0371-sum-of-two-integers.org b/org/cpp/dsa/bit-manipulation/0371-sum-of-two-integers.org new file mode 100644 index 0000000..5e9629a --- /dev/null +++ b/org/cpp/dsa/bit-manipulation/0371-sum-of-two-integers.org @@ -0,0 +1,8 @@ +* TODO 0371. Sum of Two Integers :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0371. Sum of Two Integers][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/bit-manipulation/2220-minimum-bit-flips-to-convert-number.org b/org/cpp/dsa/bit-manipulation/2220-minimum-bit-flips-to-convert-number.org new file mode 100644 index 0000000..7db219e --- /dev/null +++ b/org/cpp/dsa/bit-manipulation/2220-minimum-bit-flips-to-convert-number.org @@ -0,0 +1,8 @@ +* TODO 2220. Minimum Bit Flips to Convert Number :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*2220. Minimum Bit Flips to Convert Number][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/graphs/0127-word-ladder.org b/org/cpp/dsa/graphs/0127-word-ladder.org new file mode 100644 index 0000000..ecfb309 --- /dev/null +++ b/org/cpp/dsa/graphs/0127-word-ladder.org @@ -0,0 +1,8 @@ +* TODO 0127. Word Ladder :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0127. Word Ladder][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/graphs/0130-surrounded-regions.org b/org/cpp/dsa/graphs/0130-surrounded-regions.org new file mode 100644 index 0000000..9ad1589 --- /dev/null +++ b/org/cpp/dsa/graphs/0130-surrounded-regions.org @@ -0,0 +1,8 @@ +* TODO 0130. Surrounded Regions :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0130. Surrounded Regions][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/graphs/0133-clone-graph.org b/org/cpp/dsa/graphs/0133-clone-graph.org new file mode 100644 index 0000000..30f2101 --- /dev/null +++ b/org/cpp/dsa/graphs/0133-clone-graph.org @@ -0,0 +1,8 @@ +* TODO 0133. Clone Graph :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0133. Clone Graph][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/graphs/0200-number-of-islands.org b/org/cpp/dsa/graphs/0200-number-of-islands.org new file mode 100644 index 0000000..18bbeab --- /dev/null +++ b/org/cpp/dsa/graphs/0200-number-of-islands.org @@ -0,0 +1,8 @@ +* TODO 0200. Number of Islands :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0200. Number of Islands][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/graphs/0207-course-schedule.org b/org/cpp/dsa/graphs/0207-course-schedule.org new file mode 100644 index 0000000..d6e82f9 --- /dev/null +++ b/org/cpp/dsa/graphs/0207-course-schedule.org @@ -0,0 +1,8 @@ +* TODO 0207. Course Schedule :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0207. Course Schedule][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/graphs/0210-course-schedule-ii.org b/org/cpp/dsa/graphs/0210-course-schedule-ii.org new file mode 100644 index 0000000..f189045 --- /dev/null +++ b/org/cpp/dsa/graphs/0210-course-schedule-ii.org @@ -0,0 +1,8 @@ +* TODO 0210. Course Schedule II :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0210. Course Schedule II][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/graphs/0261-graph-valid-tree.org b/org/cpp/dsa/graphs/0261-graph-valid-tree.org new file mode 100644 index 0000000..5b81170 --- /dev/null +++ b/org/cpp/dsa/graphs/0261-graph-valid-tree.org @@ -0,0 +1,8 @@ +* TODO 0261. Graph Valid Tree :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0261. Graph Valid Tree][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/graphs/0286-walls-and-gates.org b/org/cpp/dsa/graphs/0286-walls-and-gates.org new file mode 100644 index 0000000..8745781 --- /dev/null +++ b/org/cpp/dsa/graphs/0286-walls-and-gates.org @@ -0,0 +1,8 @@ +* TODO 0286. Walls And Gates :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0286. Walls And Gates][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/graphs/0323-number-of-connected-components-in-an-undirected-graph.org b/org/cpp/dsa/graphs/0323-number-of-connected-components-in-an-undirected-graph.org new file mode 100644 index 0000000..201b110 --- /dev/null +++ b/org/cpp/dsa/graphs/0323-number-of-connected-components-in-an-undirected-graph.org @@ -0,0 +1,8 @@ +* TODO 0323. Number of Connected Components In An Undirected Graph :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0323. Number of Connected Components In An Undirected Graph][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/graphs/0417-pacific-atlantic-water-flow.org b/org/cpp/dsa/graphs/0417-pacific-atlantic-water-flow.org new file mode 100644 index 0000000..f586b13 --- /dev/null +++ b/org/cpp/dsa/graphs/0417-pacific-atlantic-water-flow.org @@ -0,0 +1,8 @@ +* TODO 0417. Pacific Atlantic Water Flow :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0417. Pacific Atlantic Water Flow][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/graphs/0684-redundant-connection.org b/org/cpp/dsa/graphs/0684-redundant-connection.org new file mode 100644 index 0000000..ca0b0a7 --- /dev/null +++ b/org/cpp/dsa/graphs/0684-redundant-connection.org @@ -0,0 +1,8 @@ +* TODO 0684. Redundant Connection :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0684. Redundant Connection][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/graphs/0695-max-area-of-island.org b/org/cpp/dsa/graphs/0695-max-area-of-island.org new file mode 100644 index 0000000..624d989 --- /dev/null +++ b/org/cpp/dsa/graphs/0695-max-area-of-island.org @@ -0,0 +1,8 @@ +* TODO 0695. Max Area of Island :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0695. Max Area of Island][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/graphs/0802-find-eventual-safe-states.org b/org/cpp/dsa/graphs/0802-find-eventual-safe-states.org new file mode 100644 index 0000000..69b6d5e --- /dev/null +++ b/org/cpp/dsa/graphs/0802-find-eventual-safe-states.org @@ -0,0 +1,8 @@ +* TODO 0802. Find Eventual Safe States :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0802. Find Eventual Safe States][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/graphs/0994-rotting-oranges.org b/org/cpp/dsa/graphs/0994-rotting-oranges.org new file mode 100644 index 0000000..5a93418 --- /dev/null +++ b/org/cpp/dsa/graphs/0994-rotting-oranges.org @@ -0,0 +1,8 @@ +* TODO 0994. Rotting Oranges :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0994. Rotting Oranges][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/graphs/1905-count-sub-islands.org b/org/cpp/dsa/graphs/1905-count-sub-islands.org new file mode 100644 index 0000000..ef335ac --- /dev/null +++ b/org/cpp/dsa/graphs/1905-count-sub-islands.org @@ -0,0 +1,8 @@ +* TODO 1905. Count Sub Islands :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1905. Count Sub Islands][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/graphs/2092-find-all-people-with-secret.org b/org/cpp/dsa/graphs/2092-find-all-people-with-secret.org new file mode 100644 index 0000000..79c3cdc --- /dev/null +++ b/org/cpp/dsa/graphs/2092-find-all-people-with-secret.org @@ -0,0 +1,8 @@ +* TODO 2092. Find All People With Secret :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*2092. Find All People With Secret][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/graphs/2658-maximum-number-of-fish-in-a-grid.org b/org/cpp/dsa/graphs/2658-maximum-number-of-fish-in-a-grid.org new file mode 100644 index 0000000..3ba7a6d --- /dev/null +++ b/org/cpp/dsa/graphs/2658-maximum-number-of-fish-in-a-grid.org @@ -0,0 +1,8 @@ +* TODO 2658. Maximum Number of Fish in a Grid :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*2658. Maximum Number of Fish in a Grid][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/graphs/2924-find-champion-ii.org b/org/cpp/dsa/graphs/2924-find-champion-ii.org new file mode 100644 index 0000000..68b63fe --- /dev/null +++ b/org/cpp/dsa/graphs/2924-find-champion-ii.org @@ -0,0 +1,8 @@ +* TODO 2924. Find Champion II :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*2924. Find Champion II][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/greedy/0045-jump-game-ii.org b/org/cpp/dsa/greedy/0045-jump-game-ii.org new file mode 100644 index 0000000..324e4a7 --- /dev/null +++ b/org/cpp/dsa/greedy/0045-jump-game-ii.org @@ -0,0 +1,8 @@ +* TODO 0045. Jump Game II :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0045. Jump Game II][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/greedy/0053-maximum-subarray.org b/org/cpp/dsa/greedy/0053-maximum-subarray.org new file mode 100644 index 0000000..605affb --- /dev/null +++ b/org/cpp/dsa/greedy/0053-maximum-subarray.org @@ -0,0 +1,8 @@ +* TODO 0053. Maximum Subarray :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0053. Maximum Subarray][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/greedy/0055-jump-game.org b/org/cpp/dsa/greedy/0055-jump-game.org new file mode 100644 index 0000000..20d6f00 --- /dev/null +++ b/org/cpp/dsa/greedy/0055-jump-game.org @@ -0,0 +1,8 @@ +* TODO 0055. Jump Game :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0055. Jump Game][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/greedy/0134-gas-station.org b/org/cpp/dsa/greedy/0134-gas-station.org new file mode 100644 index 0000000..f3b9137 --- /dev/null +++ b/org/cpp/dsa/greedy/0134-gas-station.org @@ -0,0 +1,8 @@ +* TODO 0134. Gas Station :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0134. Gas Station][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/greedy/0678-valid-parenthesis-string.org b/org/cpp/dsa/greedy/0678-valid-parenthesis-string.org new file mode 100644 index 0000000..e02bb28 --- /dev/null +++ b/org/cpp/dsa/greedy/0678-valid-parenthesis-string.org @@ -0,0 +1,8 @@ +* TODO 0678. Valid Parenthesis String :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0678. Valid Parenthesis String][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/greedy/0763-partition-labels.org b/org/cpp/dsa/greedy/0763-partition-labels.org new file mode 100644 index 0000000..ead0a4b --- /dev/null +++ b/org/cpp/dsa/greedy/0763-partition-labels.org @@ -0,0 +1,8 @@ +* TODO 0763. Partition Labels :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0763. Partition Labels][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/greedy/0846-hand-of-straights.org b/org/cpp/dsa/greedy/0846-hand-of-straights.org new file mode 100644 index 0000000..d0a3e08 --- /dev/null +++ b/org/cpp/dsa/greedy/0846-hand-of-straights.org @@ -0,0 +1,8 @@ +* TODO 0846. Hand of Straights :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0846. Hand of Straights][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/greedy/0945-minimum-increment-to-make-array-unique.org b/org/cpp/dsa/greedy/0945-minimum-increment-to-make-array-unique.org new file mode 100644 index 0000000..7f2fcf3 --- /dev/null +++ b/org/cpp/dsa/greedy/0945-minimum-increment-to-make-array-unique.org @@ -0,0 +1,8 @@ +* TODO 0945. Minimum Increment to Make Array Unique :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0945. Minimum Increment to Make Array Unique][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/greedy/0978-longest-turbulent-subarray.org b/org/cpp/dsa/greedy/0978-longest-turbulent-subarray.org new file mode 100644 index 0000000..9a36c2b --- /dev/null +++ b/org/cpp/dsa/greedy/0978-longest-turbulent-subarray.org @@ -0,0 +1,8 @@ +* TODO 0978. Longest Turbulent Subarray :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0978. Longest Turbulent Subarray][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/greedy/1871-jump-game-vii.org b/org/cpp/dsa/greedy/1871-jump-game-vii.org new file mode 100644 index 0000000..fbec914 --- /dev/null +++ b/org/cpp/dsa/greedy/1871-jump-game-vii.org @@ -0,0 +1,8 @@ +* TODO 1871. Jump Game VII :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1871. Jump Game VII][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/greedy/1899-merge-triplets-to-form-target-triplet.org b/org/cpp/dsa/greedy/1899-merge-triplets-to-form-target-triplet.org new file mode 100644 index 0000000..62be7d2 --- /dev/null +++ b/org/cpp/dsa/greedy/1899-merge-triplets-to-form-target-triplet.org @@ -0,0 +1,8 @@ +* TODO 1899. Merge Triplets to Form Target Triplet :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1899. Merge Triplets to Form Target Triplet][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/heap-priority-queue/0215-kth-largest-element-in-an-array.org b/org/cpp/dsa/heap-priority-queue/0215-kth-largest-element-in-an-array.org new file mode 100644 index 0000000..1775574 --- /dev/null +++ b/org/cpp/dsa/heap-priority-queue/0215-kth-largest-element-in-an-array.org @@ -0,0 +1,8 @@ +* TODO 0215. Kth Largest Element In An Array :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0215. Kth Largest Element In An Array][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/heap-priority-queue/0295-find-median-from-data-stream.org b/org/cpp/dsa/heap-priority-queue/0295-find-median-from-data-stream.org new file mode 100644 index 0000000..c24c977 --- /dev/null +++ b/org/cpp/dsa/heap-priority-queue/0295-find-median-from-data-stream.org @@ -0,0 +1,8 @@ +* TODO 0295. Find Median From Data Stream :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0295. Find Median From Data Stream][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/heap-priority-queue/0355-design-twitter.org b/org/cpp/dsa/heap-priority-queue/0355-design-twitter.org new file mode 100644 index 0000000..978065c --- /dev/null +++ b/org/cpp/dsa/heap-priority-queue/0355-design-twitter.org @@ -0,0 +1,8 @@ +* TODO 0355. Design Twitter :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0355. Design Twitter][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/heap-priority-queue/0621-task-scheduler.org b/org/cpp/dsa/heap-priority-queue/0621-task-scheduler.org new file mode 100644 index 0000000..f1548df --- /dev/null +++ b/org/cpp/dsa/heap-priority-queue/0621-task-scheduler.org @@ -0,0 +1,8 @@ +* TODO 0621. Task Scheduler :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0621. Task Scheduler][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/heap-priority-queue/0703-kth-largest-element-in-a-stream.org b/org/cpp/dsa/heap-priority-queue/0703-kth-largest-element-in-a-stream.org new file mode 100644 index 0000000..2610954 --- /dev/null +++ b/org/cpp/dsa/heap-priority-queue/0703-kth-largest-element-in-a-stream.org @@ -0,0 +1,8 @@ +* TODO 0703. Kth Largest Element In a Stream :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0703. Kth Largest Element In a Stream][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/heap-priority-queue/0973-k-closest-points-to-origin.org b/org/cpp/dsa/heap-priority-queue/0973-k-closest-points-to-origin.org new file mode 100644 index 0000000..64e3dcf --- /dev/null +++ b/org/cpp/dsa/heap-priority-queue/0973-k-closest-points-to-origin.org @@ -0,0 +1,8 @@ +* TODO 0973. K Closest Points to Origin :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0973. K Closest Points to Origin][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/heap-priority-queue/1046-last-stone-weight.org b/org/cpp/dsa/heap-priority-queue/1046-last-stone-weight.org new file mode 100644 index 0000000..34bc465 --- /dev/null +++ b/org/cpp/dsa/heap-priority-queue/1046-last-stone-weight.org @@ -0,0 +1,8 @@ +* TODO 1046. Last Stone Weight :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1046. Last Stone Weight][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/intervals/0056-merge-intervals.org b/org/cpp/dsa/intervals/0056-merge-intervals.org new file mode 100644 index 0000000..f0bf04d --- /dev/null +++ b/org/cpp/dsa/intervals/0056-merge-intervals.org @@ -0,0 +1,8 @@ +* TODO 0056. Merge Intervals :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0056. Merge Intervals][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/intervals/0057-insert-interval.org b/org/cpp/dsa/intervals/0057-insert-interval.org new file mode 100644 index 0000000..9088150 --- /dev/null +++ b/org/cpp/dsa/intervals/0057-insert-interval.org @@ -0,0 +1,8 @@ +* TODO 0057. Insert Interval :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0057. Insert Interval][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/intervals/0252-meeting-rooms.org b/org/cpp/dsa/intervals/0252-meeting-rooms.org new file mode 100644 index 0000000..fa78404 --- /dev/null +++ b/org/cpp/dsa/intervals/0252-meeting-rooms.org @@ -0,0 +1,8 @@ +* TODO 0252. Meeting Rooms :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0252. Meeting Rooms][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/intervals/0253-meeting-rooms-ii.org b/org/cpp/dsa/intervals/0253-meeting-rooms-ii.org new file mode 100644 index 0000000..b74e5d4 --- /dev/null +++ b/org/cpp/dsa/intervals/0253-meeting-rooms-ii.org @@ -0,0 +1,8 @@ +* TODO 0253. Meeting Rooms II :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0253. Meeting Rooms II][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/intervals/0435-non-overlapping-intervals.org b/org/cpp/dsa/intervals/0435-non-overlapping-intervals.org new file mode 100644 index 0000000..4b9172c --- /dev/null +++ b/org/cpp/dsa/intervals/0435-non-overlapping-intervals.org @@ -0,0 +1,8 @@ +* TODO 0435. Non Overlapping Intervals :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0435. Non Overlapping Intervals][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/intervals/0986-interval-list-intersections.org b/org/cpp/dsa/intervals/0986-interval-list-intersections.org new file mode 100644 index 0000000..9417e6b --- /dev/null +++ b/org/cpp/dsa/intervals/0986-interval-list-intersections.org @@ -0,0 +1,8 @@ +* TODO 0986. Interval List Intersections :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0986. Interval List Intersections][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/intervals/1851-minimum-interval-to-include-each-query.org b/org/cpp/dsa/intervals/1851-minimum-interval-to-include-each-query.org new file mode 100644 index 0000000..9c16217 --- /dev/null +++ b/org/cpp/dsa/intervals/1851-minimum-interval-to-include-each-query.org @@ -0,0 +1,8 @@ +* TODO 1851. Minimum Interval to Include Each Query :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1851. Minimum Interval to Include Each Query][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/linked-list/0002-add-two-numbers.org b/org/cpp/dsa/linked-list/0002-add-two-numbers.org new file mode 100644 index 0000000..8f8b86f --- /dev/null +++ b/org/cpp/dsa/linked-list/0002-add-two-numbers.org @@ -0,0 +1,8 @@ +* TODO 0002. Add Two Numbers :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0002. Add Two Numbers][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/linked-list/0019-remove-nth-node-from-end-of-list.org b/org/cpp/dsa/linked-list/0019-remove-nth-node-from-end-of-list.org new file mode 100644 index 0000000..dc6a672 --- /dev/null +++ b/org/cpp/dsa/linked-list/0019-remove-nth-node-from-end-of-list.org @@ -0,0 +1,8 @@ +* TODO 0019. Remove Nth Node From End of List :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0019. Remove Nth Node From End of List][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/linked-list/0021-merge-two-sorted-lists.org b/org/cpp/dsa/linked-list/0021-merge-two-sorted-lists.org new file mode 100644 index 0000000..09c6cfc --- /dev/null +++ b/org/cpp/dsa/linked-list/0021-merge-two-sorted-lists.org @@ -0,0 +1,8 @@ +* TODO 0021. Merge Two Sorted Lists :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0021. Merge Two Sorted Lists][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/linked-list/0023-merge-k-sorted-lists.org b/org/cpp/dsa/linked-list/0023-merge-k-sorted-lists.org new file mode 100644 index 0000000..10e10d8 --- /dev/null +++ b/org/cpp/dsa/linked-list/0023-merge-k-sorted-lists.org @@ -0,0 +1,8 @@ +* TODO 0023. Merge K Sorted Lists :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0023. Merge K Sorted Lists][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/linked-list/0025-reverse-nodes-in-k-group.org b/org/cpp/dsa/linked-list/0025-reverse-nodes-in-k-group.org new file mode 100644 index 0000000..3c9da4e --- /dev/null +++ b/org/cpp/dsa/linked-list/0025-reverse-nodes-in-k-group.org @@ -0,0 +1,8 @@ +* TODO 0025. Reverse Nodes In K Group :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0025. Reverse Nodes In K Group][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/linked-list/0138-copy-list-with-random-pointer.org b/org/cpp/dsa/linked-list/0138-copy-list-with-random-pointer.org new file mode 100644 index 0000000..4c83212 --- /dev/null +++ b/org/cpp/dsa/linked-list/0138-copy-list-with-random-pointer.org @@ -0,0 +1,8 @@ +* TODO 0138. Copy List With Random Pointer :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0138. Copy List With Random Pointer][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/linked-list/0141-linked-list-cycle.org b/org/cpp/dsa/linked-list/0141-linked-list-cycle.org new file mode 100644 index 0000000..69ac72c --- /dev/null +++ b/org/cpp/dsa/linked-list/0141-linked-list-cycle.org @@ -0,0 +1,8 @@ +* TODO 0141. Linked List Cycle :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0141. Linked List Cycle][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/linked-list/0143-reorder-list.org b/org/cpp/dsa/linked-list/0143-reorder-list.org new file mode 100644 index 0000000..8023761 --- /dev/null +++ b/org/cpp/dsa/linked-list/0143-reorder-list.org @@ -0,0 +1,8 @@ +* TODO 0143. Reorder List :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0143. Reorder List][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/linked-list/0146-lru-cache.org b/org/cpp/dsa/linked-list/0146-lru-cache.org new file mode 100644 index 0000000..448cbb8 --- /dev/null +++ b/org/cpp/dsa/linked-list/0146-lru-cache.org @@ -0,0 +1,8 @@ +* TODO 0146. LRU Cache :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0146. LRU Cache][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/linked-list/0206-reverse-linked-list.org b/org/cpp/dsa/linked-list/0206-reverse-linked-list.org new file mode 100644 index 0000000..8087d74 --- /dev/null +++ b/org/cpp/dsa/linked-list/0206-reverse-linked-list.org @@ -0,0 +1,8 @@ +* TODO 0206. Reverse Linked List :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0206. Reverse Linked List][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/linked-list/0287-find-the-duplicate-number.org b/org/cpp/dsa/linked-list/0287-find-the-duplicate-number.org new file mode 100644 index 0000000..cb79995 --- /dev/null +++ b/org/cpp/dsa/linked-list/0287-find-the-duplicate-number.org @@ -0,0 +1,8 @@ +* TODO 0287. Find The Duplicate Number :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0287. Find The Duplicate Number][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/linked-list/0725-split-linked-list-in-parts.org b/org/cpp/dsa/linked-list/0725-split-linked-list-in-parts.org new file mode 100644 index 0000000..1eb8c8b --- /dev/null +++ b/org/cpp/dsa/linked-list/0725-split-linked-list-in-parts.org @@ -0,0 +1,8 @@ +* TODO 0725. Split Linked List in Parts :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0725. Split Linked List in Parts][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/linked-list/1472-design-browser-history.org b/org/cpp/dsa/linked-list/1472-design-browser-history.org new file mode 100644 index 0000000..2d35c06 --- /dev/null +++ b/org/cpp/dsa/linked-list/1472-design-browser-history.org @@ -0,0 +1,8 @@ +* TODO 1472. Design Browser History :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1472. Design Browser History][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/linked-list/1721-swapping-nodes-in-a-linked-list.org b/org/cpp/dsa/linked-list/1721-swapping-nodes-in-a-linked-list.org new file mode 100644 index 0000000..0cccfb7 --- /dev/null +++ b/org/cpp/dsa/linked-list/1721-swapping-nodes-in-a-linked-list.org @@ -0,0 +1,8 @@ +* TODO 1721. Swapping Nodes in a Linked List :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1721. Swapping Nodes in a Linked List][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/linked-list/2487-remove-nodes-from-linked-list.org b/org/cpp/dsa/linked-list/2487-remove-nodes-from-linked-list.org new file mode 100644 index 0000000..05d8688 --- /dev/null +++ b/org/cpp/dsa/linked-list/2487-remove-nodes-from-linked-list.org @@ -0,0 +1,8 @@ +* TODO 2487. Remove Nodes From Linked List :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*2487. Remove Nodes From Linked List][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/math-geometry/0009-palindrome-number.org b/org/cpp/dsa/math-geometry/0009-palindrome-number.org new file mode 100644 index 0000000..80f534b --- /dev/null +++ b/org/cpp/dsa/math-geometry/0009-palindrome-number.org @@ -0,0 +1,8 @@ +* TODO 0009. Palindrome Number :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0009. Palindrome Number][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/math-geometry/0012-integer-to-roman.org b/org/cpp/dsa/math-geometry/0012-integer-to-roman.org new file mode 100644 index 0000000..45a6a96 --- /dev/null +++ b/org/cpp/dsa/math-geometry/0012-integer-to-roman.org @@ -0,0 +1,8 @@ +* TODO 0012. Integer to Roman :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0012. Integer to Roman][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/math-geometry/0043-multiply-strings.org b/org/cpp/dsa/math-geometry/0043-multiply-strings.org new file mode 100644 index 0000000..df00655 --- /dev/null +++ b/org/cpp/dsa/math-geometry/0043-multiply-strings.org @@ -0,0 +1,8 @@ +* TODO 0043. Multiply Strings :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0043. Multiply Strings][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/math-geometry/0048-rotate-image.org b/org/cpp/dsa/math-geometry/0048-rotate-image.org new file mode 100644 index 0000000..a731278 --- /dev/null +++ b/org/cpp/dsa/math-geometry/0048-rotate-image.org @@ -0,0 +1,8 @@ +* TODO 0048. Rotate Image :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0048. Rotate Image][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/math-geometry/0050-pow-x-n.org b/org/cpp/dsa/math-geometry/0050-pow-x-n.org new file mode 100644 index 0000000..ca0a6e4 --- /dev/null +++ b/org/cpp/dsa/math-geometry/0050-pow-x-n.org @@ -0,0 +1,8 @@ +* TODO 0050. Pow(x, n) :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0050. Pow(x, n)][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/math-geometry/0054-spiral-matrix.org b/org/cpp/dsa/math-geometry/0054-spiral-matrix.org new file mode 100644 index 0000000..f76e352 --- /dev/null +++ b/org/cpp/dsa/math-geometry/0054-spiral-matrix.org @@ -0,0 +1,8 @@ +* TODO 0054. Spiral Matrix :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0054. Spiral Matrix][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/math-geometry/0066-plus-one.org b/org/cpp/dsa/math-geometry/0066-plus-one.org new file mode 100644 index 0000000..2ee2cb0 --- /dev/null +++ b/org/cpp/dsa/math-geometry/0066-plus-one.org @@ -0,0 +1,8 @@ +* TODO 0066. Plus One :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0066. Plus One][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/math-geometry/0073-set-matrix-zeroes.org b/org/cpp/dsa/math-geometry/0073-set-matrix-zeroes.org new file mode 100644 index 0000000..0ed5626 --- /dev/null +++ b/org/cpp/dsa/math-geometry/0073-set-matrix-zeroes.org @@ -0,0 +1,8 @@ +* TODO 0073. Set Matrix Zeroes :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0073. Set Matrix Zeroes][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/math-geometry/0202-happy-number.org b/org/cpp/dsa/math-geometry/0202-happy-number.org new file mode 100644 index 0000000..bff38b4 --- /dev/null +++ b/org/cpp/dsa/math-geometry/0202-happy-number.org @@ -0,0 +1,8 @@ +* TODO 0202. Happy Number :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0202. Happy Number][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/math-geometry/0296-best-meeting-point.org b/org/cpp/dsa/math-geometry/0296-best-meeting-point.org new file mode 100644 index 0000000..1d978f9 --- /dev/null +++ b/org/cpp/dsa/math-geometry/0296-best-meeting-point.org @@ -0,0 +1,8 @@ +* TODO 0296. Best Meeting Point :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0296. Best Meeting Point][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/math-geometry/0840-magic-squares-in-grid.org b/org/cpp/dsa/math-geometry/0840-magic-squares-in-grid.org new file mode 100644 index 0000000..04faddb --- /dev/null +++ b/org/cpp/dsa/math-geometry/0840-magic-squares-in-grid.org @@ -0,0 +1,8 @@ +* TODO 0840. Magic Squares In Grid :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0840. Magic Squares In Grid][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/math-geometry/1780-check-if-number-is-a-sum-of-powers-of-three.org b/org/cpp/dsa/math-geometry/1780-check-if-number-is-a-sum-of-powers-of-three.org new file mode 100644 index 0000000..c8ff2cf --- /dev/null +++ b/org/cpp/dsa/math-geometry/1780-check-if-number-is-a-sum-of-powers-of-three.org @@ -0,0 +1,8 @@ +* TODO 1780. Check if Number is a Sum of Powers of Three :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1780. Check if Number is a Sum of Powers of Three][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/math-geometry/2013-detect-squares.org b/org/cpp/dsa/math-geometry/2013-detect-squares.org new file mode 100644 index 0000000..d73be23 --- /dev/null +++ b/org/cpp/dsa/math-geometry/2013-detect-squares.org @@ -0,0 +1,8 @@ +* TODO 2013. Detect Squares :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*2013. Detect Squares][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/math-geometry/2326-spiral-matrix-iv.org b/org/cpp/dsa/math-geometry/2326-spiral-matrix-iv.org new file mode 100644 index 0000000..4aa59c5 --- /dev/null +++ b/org/cpp/dsa/math-geometry/2326-spiral-matrix-iv.org @@ -0,0 +1,8 @@ +* TODO 2326. Spiral Matrix IV :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*2326. Spiral Matrix IV][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/math-geometry/2698-find-the-punishment-number-of-an-integer.org b/org/cpp/dsa/math-geometry/2698-find-the-punishment-number-of-an-integer.org new file mode 100644 index 0000000..c839f05 --- /dev/null +++ b/org/cpp/dsa/math-geometry/2698-find-the-punishment-number-of-an-integer.org @@ -0,0 +1,8 @@ +* TODO 2698. Find the Punishment Number of an Integer :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*2698. Find the Punishment Number of an Integer][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/sliding-window/0003-longest-substring-without-repeating-characters.org b/org/cpp/dsa/sliding-window/0003-longest-substring-without-repeating-characters.org new file mode 100644 index 0000000..83a2749 --- /dev/null +++ b/org/cpp/dsa/sliding-window/0003-longest-substring-without-repeating-characters.org @@ -0,0 +1,8 @@ +* TODO 0003. Longest Substring Without Repeating Characters :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0003. Longest Substring Without Repeating Characters][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/sliding-window/0076-minimum-window-substring.org b/org/cpp/dsa/sliding-window/0076-minimum-window-substring.org new file mode 100644 index 0000000..ee0a5ca --- /dev/null +++ b/org/cpp/dsa/sliding-window/0076-minimum-window-substring.org @@ -0,0 +1,8 @@ +* TODO 0076. Minimum Window Substring :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0076. Minimum Window Substring][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/sliding-window/0121-best-time-to-buy-and-sell-stock.org b/org/cpp/dsa/sliding-window/0121-best-time-to-buy-and-sell-stock.org new file mode 100644 index 0000000..a254a2b --- /dev/null +++ b/org/cpp/dsa/sliding-window/0121-best-time-to-buy-and-sell-stock.org @@ -0,0 +1,8 @@ +* TODO 0121. Best Time to Buy And Sell Stock :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0121. Best Time to Buy And Sell Stock][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/sliding-window/0239-sliding-window-maximum.org b/org/cpp/dsa/sliding-window/0239-sliding-window-maximum.org new file mode 100644 index 0000000..4430980 --- /dev/null +++ b/org/cpp/dsa/sliding-window/0239-sliding-window-maximum.org @@ -0,0 +1,8 @@ +* TODO 0239. Sliding Window Maximum :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0239. Sliding Window Maximum][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/sliding-window/0424-longest-repeating-character-replacement.org b/org/cpp/dsa/sliding-window/0424-longest-repeating-character-replacement.org new file mode 100644 index 0000000..37ccd1f --- /dev/null +++ b/org/cpp/dsa/sliding-window/0424-longest-repeating-character-replacement.org @@ -0,0 +1,8 @@ +* TODO 0424. Longest Repeating Character Replacement :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0424. Longest Repeating Character Replacement][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/sliding-window/0567-permutation-in-string.org b/org/cpp/dsa/sliding-window/0567-permutation-in-string.org new file mode 100644 index 0000000..4040de7 --- /dev/null +++ b/org/cpp/dsa/sliding-window/0567-permutation-in-string.org @@ -0,0 +1,8 @@ +* TODO 0567. Permutation In String :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0567. Permutation In String][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/sliding-window/3306-count-of-substrings-containing-every-vowel-and-k-consonants-ii.org b/org/cpp/dsa/sliding-window/3306-count-of-substrings-containing-every-vowel-and-k-consonants-ii.org new file mode 100644 index 0000000..2ef4bba --- /dev/null +++ b/org/cpp/dsa/sliding-window/3306-count-of-substrings-containing-every-vowel-and-k-consonants-ii.org @@ -0,0 +1,8 @@ +* TODO 3306. Count of Substrings Containing Every Vowel and K Consonants II :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*3306. Count of Substrings Containing Every Vowel and K Consonants II][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/stack/0020-valid-parentheses.org b/org/cpp/dsa/stack/0020-valid-parentheses.org new file mode 100644 index 0000000..04d44b7 --- /dev/null +++ b/org/cpp/dsa/stack/0020-valid-parentheses.org @@ -0,0 +1,8 @@ +* TODO 0020. Valid Parentheses :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0020. Valid Parentheses][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/stack/0084-largest-rectangle-in-histogram.org b/org/cpp/dsa/stack/0084-largest-rectangle-in-histogram.org new file mode 100644 index 0000000..d78205a --- /dev/null +++ b/org/cpp/dsa/stack/0084-largest-rectangle-in-histogram.org @@ -0,0 +1,8 @@ +* TODO 0084. Largest Rectangle In Histogram :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0084. Largest Rectangle In Histogram][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/stack/0150-evaluate-reverse-polish-notation.org b/org/cpp/dsa/stack/0150-evaluate-reverse-polish-notation.org new file mode 100644 index 0000000..8d8c2e0 --- /dev/null +++ b/org/cpp/dsa/stack/0150-evaluate-reverse-polish-notation.org @@ -0,0 +1,8 @@ +* TODO 0150. Evaluate Reverse Polish Notation :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0150. Evaluate Reverse Polish Notation][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/stack/0155-min-stack.org b/org/cpp/dsa/stack/0155-min-stack.org new file mode 100644 index 0000000..5e865d3 --- /dev/null +++ b/org/cpp/dsa/stack/0155-min-stack.org @@ -0,0 +1,8 @@ +* TODO 0155. Min Stack :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0155. Min Stack][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/stack/0682-baseball-game.org b/org/cpp/dsa/stack/0682-baseball-game.org new file mode 100644 index 0000000..97159a9 --- /dev/null +++ b/org/cpp/dsa/stack/0682-baseball-game.org @@ -0,0 +1,8 @@ +* TODO 0682. Baseball Game :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0682. Baseball Game][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/stack/0726-number-of-atoms.org b/org/cpp/dsa/stack/0726-number-of-atoms.org new file mode 100644 index 0000000..80eaca8 --- /dev/null +++ b/org/cpp/dsa/stack/0726-number-of-atoms.org @@ -0,0 +1,8 @@ +* TODO 0726. Number of Atoms :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0726. Number of Atoms][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/stack/0739-daily-temperatures.org b/org/cpp/dsa/stack/0739-daily-temperatures.org new file mode 100644 index 0000000..41f1a16 --- /dev/null +++ b/org/cpp/dsa/stack/0739-daily-temperatures.org @@ -0,0 +1,8 @@ +* TODO 0739. Daily Temperatures :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0739. Daily Temperatures][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/stack/0853-car-fleet.org b/org/cpp/dsa/stack/0853-car-fleet.org new file mode 100644 index 0000000..a8a69d4 --- /dev/null +++ b/org/cpp/dsa/stack/0853-car-fleet.org @@ -0,0 +1,8 @@ +* TODO 0853. Car Fleet :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0853. Car Fleet][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/stack/0901-online-stock-span.org b/org/cpp/dsa/stack/0901-online-stock-span.org new file mode 100644 index 0000000..588e723 --- /dev/null +++ b/org/cpp/dsa/stack/0901-online-stock-span.org @@ -0,0 +1,8 @@ +* TODO 0901. Online Stock Span :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0901. Online Stock Span][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/stack/1544-make-the-string-great.org b/org/cpp/dsa/stack/1544-make-the-string-great.org new file mode 100644 index 0000000..9dfa56c --- /dev/null +++ b/org/cpp/dsa/stack/1544-make-the-string-great.org @@ -0,0 +1,8 @@ +* TODO 1544. Make The String Great :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1544. Make The String Great][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/trees/0098-validate-binary-search-tree.org b/org/cpp/dsa/trees/0098-validate-binary-search-tree.org new file mode 100644 index 0000000..2c46e58 --- /dev/null +++ b/org/cpp/dsa/trees/0098-validate-binary-search-tree.org @@ -0,0 +1,8 @@ +* TODO 0098. Validate Binary Search Tree :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0098. Validate Binary Search Tree][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/trees/0100-same-tree.org b/org/cpp/dsa/trees/0100-same-tree.org new file mode 100644 index 0000000..fe69ec0 --- /dev/null +++ b/org/cpp/dsa/trees/0100-same-tree.org @@ -0,0 +1,8 @@ +* TODO 0100. Same Tree :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0100. Same Tree][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/trees/0102-binary-tree-level-order-traversal.org b/org/cpp/dsa/trees/0102-binary-tree-level-order-traversal.org new file mode 100644 index 0000000..b89af92 --- /dev/null +++ b/org/cpp/dsa/trees/0102-binary-tree-level-order-traversal.org @@ -0,0 +1,8 @@ +* TODO 0102. Binary Tree Level Order Traversal :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0102. Binary Tree Level Order Traversal][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/trees/0104-maximum-depth-of-binary-tree.org b/org/cpp/dsa/trees/0104-maximum-depth-of-binary-tree.org new file mode 100644 index 0000000..561508e --- /dev/null +++ b/org/cpp/dsa/trees/0104-maximum-depth-of-binary-tree.org @@ -0,0 +1,8 @@ +* TODO 0104. Maximum Depth of Binary Tree :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0104. Maximum Depth of Binary Tree][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/trees/0105-construct-binary-tree-from-preorder-and-inorder-traversal.org b/org/cpp/dsa/trees/0105-construct-binary-tree-from-preorder-and-inorder-traversal.org new file mode 100644 index 0000000..1d0a249 --- /dev/null +++ b/org/cpp/dsa/trees/0105-construct-binary-tree-from-preorder-and-inorder-traversal.org @@ -0,0 +1,8 @@ +* TODO 0105. Construct Binary Tree From Preorder And Inorder Traversal :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0105. Construct Binary Tree From Preorder And Inorder Traversal][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/trees/0110-balanced-binary-tree.org b/org/cpp/dsa/trees/0110-balanced-binary-tree.org new file mode 100644 index 0000000..6edd0cb --- /dev/null +++ b/org/cpp/dsa/trees/0110-balanced-binary-tree.org @@ -0,0 +1,8 @@ +* TODO 0110. Balanced Binary Tree :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0110. Balanced Binary Tree][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/trees/0124-binary-tree-maximum-path-sum.org b/org/cpp/dsa/trees/0124-binary-tree-maximum-path-sum.org new file mode 100644 index 0000000..d8811b2 --- /dev/null +++ b/org/cpp/dsa/trees/0124-binary-tree-maximum-path-sum.org @@ -0,0 +1,8 @@ +* TODO 0124. Binary Tree Maximum Path Sum :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0124. Binary Tree Maximum Path Sum][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/trees/0199-binary-tree-right-side-view.org b/org/cpp/dsa/trees/0199-binary-tree-right-side-view.org new file mode 100644 index 0000000..453eaf7 --- /dev/null +++ b/org/cpp/dsa/trees/0199-binary-tree-right-side-view.org @@ -0,0 +1,8 @@ +* TODO 0199. Binary Tree Right Side View :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0199. Binary Tree Right Side View][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/trees/0226-invert-binary-tree.org b/org/cpp/dsa/trees/0226-invert-binary-tree.org new file mode 100644 index 0000000..b8b673c --- /dev/null +++ b/org/cpp/dsa/trees/0226-invert-binary-tree.org @@ -0,0 +1,8 @@ +* TODO 0226. Invert Binary Tree :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0226. Invert Binary Tree][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/trees/0230-kth-smallest-element-in-a-bst.org b/org/cpp/dsa/trees/0230-kth-smallest-element-in-a-bst.org new file mode 100644 index 0000000..738852e --- /dev/null +++ b/org/cpp/dsa/trees/0230-kth-smallest-element-in-a-bst.org @@ -0,0 +1,8 @@ +* TODO 0230. Kth Smallest Element In a Bst :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0230. Kth Smallest Element In a Bst][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/trees/0235-lowest-common-ancestor-of-a-binary-search-tree.org b/org/cpp/dsa/trees/0235-lowest-common-ancestor-of-a-binary-search-tree.org new file mode 100644 index 0000000..23a96a8 --- /dev/null +++ b/org/cpp/dsa/trees/0235-lowest-common-ancestor-of-a-binary-search-tree.org @@ -0,0 +1,8 @@ +* TODO 0235. Lowest Common Ancestor of a Binary Search Tree :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0235. Lowest Common Ancestor of a Binary Search Tree][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/trees/0297-serialize-and-deserialize-binary-tree.org b/org/cpp/dsa/trees/0297-serialize-and-deserialize-binary-tree.org new file mode 100644 index 0000000..8f6f1c2 --- /dev/null +++ b/org/cpp/dsa/trees/0297-serialize-and-deserialize-binary-tree.org @@ -0,0 +1,8 @@ +* TODO 0297. Serialize And Deserialize Binary Tree :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0297. Serialize And Deserialize Binary Tree][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/trees/0543-diameter-of-binary-tree.org b/org/cpp/dsa/trees/0543-diameter-of-binary-tree.org new file mode 100644 index 0000000..a8e2df8 --- /dev/null +++ b/org/cpp/dsa/trees/0543-diameter-of-binary-tree.org @@ -0,0 +1,8 @@ +* TODO 0543. Diameter of Binary Tree :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0543. Diameter of Binary Tree][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/trees/0572-subtree-of-another-tree.org b/org/cpp/dsa/trees/0572-subtree-of-another-tree.org new file mode 100644 index 0000000..df1e52e --- /dev/null +++ b/org/cpp/dsa/trees/0572-subtree-of-another-tree.org @@ -0,0 +1,8 @@ +* TODO 0572. Subtree of Another Tree :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0572. Subtree of Another Tree][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/trees/0590-n-ary-tree-postorder-traversal.org b/org/cpp/dsa/trees/0590-n-ary-tree-postorder-traversal.org new file mode 100644 index 0000000..403c421 --- /dev/null +++ b/org/cpp/dsa/trees/0590-n-ary-tree-postorder-traversal.org @@ -0,0 +1,8 @@ +* TODO 0590. N-ary Tree Postorder Traversal :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0590. N-ary Tree Postorder Traversal][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/trees/1028-recover-a-tree-from-preorder-traversal.org b/org/cpp/dsa/trees/1028-recover-a-tree-from-preorder-traversal.org new file mode 100644 index 0000000..49c0ced --- /dev/null +++ b/org/cpp/dsa/trees/1028-recover-a-tree-from-preorder-traversal.org @@ -0,0 +1,8 @@ +* TODO 1028. Recover a Tree From Preorder Traversal :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1028. Recover a Tree From Preorder Traversal][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/trees/1376-time-needed-to-inform-all-employees.org b/org/cpp/dsa/trees/1376-time-needed-to-inform-all-employees.org new file mode 100644 index 0000000..c7e9725 --- /dev/null +++ b/org/cpp/dsa/trees/1376-time-needed-to-inform-all-employees.org @@ -0,0 +1,8 @@ +* TODO 1376. Time Needed to Inform All Employees :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1376. Time Needed to Inform All Employees][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/trees/1448-count-good-nodes-in-binary-tree.org b/org/cpp/dsa/trees/1448-count-good-nodes-in-binary-tree.org new file mode 100644 index 0000000..4b8705e --- /dev/null +++ b/org/cpp/dsa/trees/1448-count-good-nodes-in-binary-tree.org @@ -0,0 +1,8 @@ +* TODO 1448. Count Good Nodes In Binary Tree :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1448. Count Good Nodes In Binary Tree][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/tries/0208-implement-trie-prefix-tree.org b/org/cpp/dsa/tries/0208-implement-trie-prefix-tree.org new file mode 100644 index 0000000..2b2e0b9 --- /dev/null +++ b/org/cpp/dsa/tries/0208-implement-trie-prefix-tree.org @@ -0,0 +1,8 @@ +* TODO 0208. Implement Trie Prefix Tree :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0208. Implement Trie Prefix Tree][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/tries/0211-design-add-and-search-words-data-structure.org b/org/cpp/dsa/tries/0211-design-add-and-search-words-data-structure.org new file mode 100644 index 0000000..babfba4 --- /dev/null +++ b/org/cpp/dsa/tries/0211-design-add-and-search-words-data-structure.org @@ -0,0 +1,8 @@ +* TODO 0211. Design Add And Search Words Data Structure :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0211. Design Add And Search Words Data Structure][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/tries/0212-word-search-ii.org b/org/cpp/dsa/tries/0212-word-search-ii.org new file mode 100644 index 0000000..557142a --- /dev/null +++ b/org/cpp/dsa/tries/0212-word-search-ii.org @@ -0,0 +1,8 @@ +* TODO 0212. Word Search II :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0212. Word Search II][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/tries/1166-design-file-system.org b/org/cpp/dsa/tries/1166-design-file-system.org new file mode 100644 index 0000000..ee138a5 --- /dev/null +++ b/org/cpp/dsa/tries/1166-design-file-system.org @@ -0,0 +1,8 @@ +* TODO 1166. Design File System :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*1166. Design File System][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/two-pointers/0011-container-with-most-water.org b/org/cpp/dsa/two-pointers/0011-container-with-most-water.org new file mode 100644 index 0000000..ea0b17e --- /dev/null +++ b/org/cpp/dsa/two-pointers/0011-container-with-most-water.org @@ -0,0 +1,8 @@ +* TODO 0011. Container With Most Water :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0011. Container With Most Water][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/two-pointers/0015-3sum.org b/org/cpp/dsa/two-pointers/0015-3sum.org new file mode 100644 index 0000000..6b9444b --- /dev/null +++ b/org/cpp/dsa/two-pointers/0015-3sum.org @@ -0,0 +1,8 @@ +* TODO 0015. 3Sum :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0015. 3Sum][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/two-pointers/0042-trapping-rain-water.org b/org/cpp/dsa/two-pointers/0042-trapping-rain-water.org new file mode 100644 index 0000000..9a6d18c --- /dev/null +++ b/org/cpp/dsa/two-pointers/0042-trapping-rain-water.org @@ -0,0 +1,8 @@ +* TODO 0042. Trapping Rain Water :hard: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0042. Trapping Rain Water][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/two-pointers/0125-valid-palindrome.org b/org/cpp/dsa/two-pointers/0125-valid-palindrome.org new file mode 100644 index 0000000..e6a7a0d --- /dev/null +++ b/org/cpp/dsa/two-pointers/0125-valid-palindrome.org @@ -0,0 +1,8 @@ +* TODO 0125. Valid Palindrome :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0125. Valid Palindrome][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/two-pointers/0167-two-sum-ii-input-array-is-sorted.org b/org/cpp/dsa/two-pointers/0167-two-sum-ii-input-array-is-sorted.org new file mode 100644 index 0000000..b427698 --- /dev/null +++ b/org/cpp/dsa/two-pointers/0167-two-sum-ii-input-array-is-sorted.org @@ -0,0 +1,8 @@ +* TODO 0167. Two Sum II Input Array Is Sorted :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0167. Two Sum II Input Array Is Sorted][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/two-pointers/0259-3sum-smaller.org b/org/cpp/dsa/two-pointers/0259-3sum-smaller.org new file mode 100644 index 0000000..f81fa7e --- /dev/null +++ b/org/cpp/dsa/two-pointers/0259-3sum-smaller.org @@ -0,0 +1,8 @@ +* TODO 0259. 3Sum Smaller :medium: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0259. 3Sum Smaller][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src diff --git a/org/cpp/dsa/two-pointers/0344-reverse-string.org b/org/cpp/dsa/two-pointers/0344-reverse-string.org new file mode 100644 index 0000000..426350a --- /dev/null +++ b/org/cpp/dsa/two-pointers/0344-reverse-string.org @@ -0,0 +1,8 @@ +* TODO 0344. Reverse String :easy: +:PROPERTIES: +:NEETCODE: [[../../../../leetcode/out/roadmap.org::*0344. Reverse String][Roadmap]] +:END: + +#+begin_src cpp + +#+end_src