Algorithm Spices
latest
Preface
Data Structure
LeetCode Tags
LeetCode Template
Patterns for Coding Questions
1. Sliding Window
2. Two Points
3. Fast & Slow pointers
4. Merge Intervals
5. Cyclic Sort
6. In-place Reversal of a LinkedList
7. Tree Breadth First Search
8. Tree Depth First Search
8.1. Binary Tree Path Sum (easy)
8.2. All Paths for a Sum (medium)
8.3. Sum of Path Numbers (medium)
8.4. Path With Given Sequence (medium)
8.5. Count Paths for a Sum (medium)
8.6. Problem Challenge 1 - Tree Diameter (medium)
8.7. Problem Challenge 2 - Path with Maximum Sum (hard)
9. Two Heaps
10. Subsets
11. Modified Binary Search
12. Bitwise XOR
13. Top ‘K’ Elements
14. K-way merge
15. 0/1 Knapsack (Dynamic Programming)
16. Topological Sort (Graph)
17. Miscellaneous
Algorithm Spices
Docs
»
Patterns for Coding Questions
»
8. Tree Depth First Search
Edit on GitHub
8. Tree Depth First Search
¶
Contents:
8.1. Binary Tree Path Sum (easy)
8.2. All Paths for a Sum (medium)
8.3. Sum of Path Numbers (medium)
8.4. Path With Given Sequence (medium)
8.5. Count Paths for a Sum (medium)
8.6. Problem Challenge 1 - Tree Diameter (medium)
8.7. Problem Challenge 2 - Path with Maximum Sum (hard)