This packages visualizes the way that elements are added to a tree step by step
It depend on the binary search tree DataStracture which is an ordered tree of numbers.
-
You need to install binarytree package of version
5.1.0
:
Run this code in your terminal:pip install binarytree==5.1.0
-
You can now run
treeVisualizer
.
This package is actually a calculator that uses the input expression to construct a tree
that has both operands and operators, and ouputs the following:
- A visualization for the tree.
- Evaluation of the expression provided.
- Postfix expression.
- Count of the operators (+-*/^). It accepts both stripped and separated forms of inputs, and also don't need parentheses to work.