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
- Host: GitHub
- URL: https://github.com/drapegnik/bst
- Owner: Drapegnik
- Created: 2016-09-25T12:14:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-04T20:33:34.000Z (over 7 years ago)
- Last Synced: 2025-02-28T07:55:02.821Z (12 months ago)
- Topics: binary-search-tree, bsu, console-visualization, famcs, java, labs, study, tree
- Language: Java
- Homepage:
- Size: 5.86 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BST
[](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`
