Skip to content

gyoliver/coding-exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

coding-exercise

Tree node-finding coding exercise

The program file is find_node.py and can be executed by opening a command line terminal and calling:

python <file-path>/find_node.py

The program file leverages the tree and node classes (MyTree and MyNode) defined in module mytree.py. The code was written in Python 3.6x.

Tree and node instantiation occur at the top of find_node.py. The name of the node to be found is passed as a string into the method main(). A classic depth-first search is implemented to find the named node.

About

Tree node-finding coding exercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages