An open API service indexing awesome lists of open source software.

https://github.com/drapegnik/bst

:evergreen_tree: Binary Search Tree with console visualization on Java
https://github.com/drapegnik/bst

binary-search-tree bsu console-visualization famcs java labs study tree

Last synced: 11 months ago
JSON representation

:evergreen_tree: Binary Search Tree with console visualization on Java

Awesome Lists containing this project

README

          

# BST

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/98f929e484504948af1cbf52efa0bd08)](https://www.codacy.com/app/Drapegnik/BST?utm_source=github.com&utm_medium=referral&utm_content=Drapegnik/BST&utm_campaign=badger)

Binary Search Tree with console visualization on Java

**implemented features**:

- _add(value)_ - adding new node with `value` to tree
- _search(value)_ - search node with `value` in tree
- _del(value)_ - search and delete node with `value` from tree
- _goLeftRootRight()_ - print nodes value in `left-root-right` tree walk
- _goRootLeftRight()_ - print nodes value in `root-left-right` tree walk
- _gotLeftRightRoot()_ - print nodes value in `left-right-root` tree walk
- _draw()_ - draw colored tree in concole

**examples**:

_LeftRootRight_: `1 3 4 5 6 7 11 12 13 14 15 16`
_RootLeftRight_: `7 4 3 1 5 6 12 11 14 13 15 16`
_LeftRightRoot_: `1 3 6 5 4 11 13 16 15 14 12 7`