Skip to content

skjghisole/binaryTree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binary Tree

This is my Implementation on how the binary tree works.

It has tree traversals and binary search

What's inside? 🚀

.
├── public
├── Node.js
├── Tree.js
├── index.js
├── package-lock.json
├── package.json
└── README.md

This implementation uses Express and Node.js that runs our backend and plain HTML and CSS on the frontend

How does this work? 🤔

So we currently have 4 endpoints for this

  1. /tree
https://skjghisole-tree.herokuapp.com/tree

Which returns a generated tree with a maximum of 10 nodes from 0 - 100 as default

  1. /tree/{value}
https://skjghisole-tree.herokuapp.com/tree/{value}

Is the same as the above but instead of 100 as default, it generates tree with a maximum of 10 nodes from 0 - value

  1. /traverse
https://skjghisole-tree.herokuapp.com/traverse

This returns the traversed(sorted) values of the tree

and lastly...

  1. /reset
https://skjghisole-tree.herokuapp.com/reset

This just resets the tree

Visit here to test it out 🛠

https://skjghisole-tree.herokuapp.com/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published