Skip to content

This is The Odin Project's binary search tree project, where I create and balance binary search trees.

Notifications You must be signed in to change notification settings

harmolipi/binary-search-trees

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

Binary Search Trees

Created as part of The Odin Project curriculum.

View on Github

Functionality

This is the binary search tree (BST) project, in which I create a balanced BST.

Methods

Method Description
#build_tree Turns an array of data into a balanced binary tree full of Node objects appropriately placed
#insert Adds a new node containing a particular value
#delete Removes that new node, containing a particular line
#find Returns the node with the given value
#inorder Traverse the tree in 'inorder'
#preorder Traverse the tree in 'preorder'
#postorder Traverse the tree in 'postorder'

Thoughts

This was a good one! By the end of it, I felt much better about recursion. It was also a good exercise in deciphering non-ruby programming languages, reading them like pseudocode, and expressing the logic in ruby. And binary search trees certainly made much more sense by the end of it.

God bless.

-Niko Birbilis

About

This is The Odin Project's binary search tree project, where I create and balance binary search trees.

Topics

Resources

Stars

Watchers

Forks

Languages