https://github.com/arpith/tree-searcher
Search a tree for a node
https://github.com/arpith/tree-searcher
Last synced: 5 days ago
JSON representation
Search a tree for a node
- Host: GitHub
- URL: https://github.com/arpith/tree-searcher
- Owner: arpith
- License: mit
- Created: 2016-03-04T15:23:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-07T17:09:37.000Z (over 10 years ago)
- Last Synced: 2025-02-25T14:50:34.717Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tree-searcher
Search a tree for a node
Code to search a tree of nodes depth first. It takes a node name and the tree as inputs, and will return the node name if it is found.
For example, if the code is given "g" and a tree with the structure above, it will return the node named "g".