Discover Packages
github.com/openset/leetcode
problems
closest-leaf-in-a-binary-tree
package
Version:
v1.3.2
Opens a new window with list of versions in this module.
Published: Jun 19, 2019
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
< Previous
Next >
742. Closest Leaf in a Binary Tree (Medium)
[Tree ]
Hints
Hint 1
Convert the tree to a general graph, and do a breadth-first search. Alternatively, find the closest leaf for every node on the path from root to target.
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.