A collection of LeetCode problem solutions, focusing on recursion and algorithmic problem-solving.
| Serial # | # | Problem | Category | LeetCode | Solution | YouTube |
|---|---|---|---|---|---|---|
| 1 | 22 | Generate Parentheses | Recursion | View | lc22_generate_parentheses.py | Watch |
| 2 | 46 | Permutations | Recursion | View | lc46_permutations.py | Watch |
| 3 | 77 | Combinations | Recursion | View | lc77_combinations.py | Watch |
| 4 | 78 | Subsets | Recursion | View | lc78_subsequences_of_string.py | Watch |
| 5 | 79 | Word Search | Recursion | View | lc79_word_search.py | Watch |
| 6 | 90 | Subsets II | Recursion | View | lc90_subsets_ii.py | Watch |
| 7 | 89 | Gray Code | Recursion | View | lc89_gray_code.py | Watch |
| 8 | 257 | Binary Tree Paths | Recursion | View | lc257_binary_tree_paths.py | Watch |
| 9 | 39 | Combination Sum | Recursion | View | lc39_combination_sum.py | Watch |
Each file can be run independently:
python recursion/lc46_permutations.pyInstall dependencies:
pip install -r requirements.txtRun all tests:
pytestRun tests for a specific file:
pytest tests/test_lc46_permutations.pyFree content by SoulBits