Home | Projects | Notes > Problem Solving > LC - E - 257. Binary Tree Paths (DFS)

LC - E - 257. Binary Tree Paths (DFS)

 

Solutions in C++

Solution 1

This solution uses Depth-First Search (DFS) algorithm and recursion.

Be able to introduce and use new members to the Solution class (e.g., helper functions, variables, etc.)

Complexity Analysis:

Solution: