Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Implement a k tree

Create a Python class that implements the methods of a k tree algorithm.

Challenge

Implement the following methods.

  • insert inserting the value into the tree under a given parent node
  • pre_order iterate through the tree calling visitor on pre order
  • post_order iterate through the tree calling visitor on post order
  • breadth_first iterate through the tree calling visitor on breadth first order