A collection of LeetCode problems solved using Tree & Graph pattern techniques, explanations, and complexity analysis.
| # | Problem | Language | Time | Space | Explanation |
|---|---|---|---|---|---|
| 112 | Path Sum | PHP | O(n) | O(n) | Explanation |
| 404 | Sum of Left Leaves | Python | O(n) | O(n) | Explanation |
| 559 | Maximum Depth of N-ary Tree | Python | O(n) | O(n) | Explanation |
| 733 | Flood Fill | Python | O(n) | O(n) | Explanation |
| 1022 | Sum of Root To Leaf Binary Numbers | Python | O(n) | O(n) | Explanation |
| 1217 | Minimum Cost to Move Chips to The Same Position | Python | O(n) | O(n) | Explanation |
| 1260 | Shift 2D Grid | Racket | O(n) | O(n) | Explanation |
| 2078 | Two Furthest Houses With Different Colors | Python | O(n) | O(n) | Explanation |
| 2409 | Count Days Spent Together | Python | O(n) | O(n) | Explanation |
| 2667 | Create Hello World Function | TypeScript | O(n) | O(n) | Explanation |
| 2885 | Rename Columns | Python | O(n) | O(n) | Explanation |
| 3200 | Maximum Height of a Triangle | Python | O(n) | O(n) | Explanation |
| 3959 | Check Good Integer | Python | O(n) | O(n) | Explanation |