Binary Tree: are trees the same structurally and by value? DFS recursive without helper isSameTree Python
Mon Jul 18 2022 22:17:42 GMT+0000 (Coordinated Universal Time)
Saved by @bryantirawan #python #tree #recursion #dfs #neetcode
Big O(p + q) worst case you have to look at each node's values
https://leetcode.com/problems/same-tree/submissions/
Comments