Spaces:
Runtime error
Runtime error
|
Download Trees/README.md from swetha-coding/dsahub: direct link, hf CLI and curl.
- Browser
- Download file 817 Bytes
-
https://huggingface.co/spaces/swetha-coding/dsahub/resolve/main/Trees/README.md
- Command line
-
hf download hf://spaces/swetha-coding/dsahub/Trees/README.md
-
curl -L -o README.md https://huggingface.co/spaces/swetha-coding/dsahub/resolve/main/Trees/README.md
817 Bytes
A newer version of the Gradio SDK is available: 6.33.0
Binary Search Tree Visualizer (Trees)
A Flask-based web application to demonstrate the Binary Search Tree (BST) data structure.
Users can insert nodes and see the tree grow interactively, with parent-child relationships displayed visually.
π Features
- Insert nodes into the BST
- Visualize the tree structure dynamically
- Show parent-child relationships with edges
- Display sorted order using inorder traversal
- Real-world analogy: file systems, organizational hierarchies
π Project Structure
app.pyβ Flask backend logictemplates/β HTML templates (tree.html)
βοΈ Installation
- Clone the repository:
git clone https://github.com/Swetha-ks/bst-visualizer.git - pip install -r requirements.txt
- python app.py
- http://127.0.0.1:5000