This project is a simple web application that allows users to visualize a Binary Search Tree (BST). Users can input a list of numbers, and the application will build and display the BST in a hierarchical tree structure.
- Input numbers to build a Binary Search Tree.
- Visualize the tree structure dynamically.
- Interactive UI with node hover effects.
- Clear and concise user interface.
- HTML
- CSS
- JavaScript
- Clone the repository:
git clone https://github.com/yourusername/bst-visualization.git
- Navigate to the project directory:
cd bst-visualization
- Open the
index.html
file in your web browser to view the application.
- Enter numbers in the input field, separated by commas (e.g.,
5, 3, 7, 2, 4, 6, 8
). - Click the "Build Tree" button to generate the Binary Search Tree.
- The tree will be displayed below the input field in a hierarchical structure.
Contributions are welcome! If you have suggestions or improvements, feel free to create an issue or submit a pull request. Please follow the standard GitHub workflow for contributions:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes and commit them (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new Pull Request.
This project is licensed under the MIT License.