Simple walkthrough on how to implement a generic tree data structure in javascript. Intro to tree implementations using simple algorithms and logic.
Next Video To Watch:
File System Tree - [ Ссылка ]
Reference Videos
- Linked Lists = [ Ссылка ]
- Closure = [ Ссылка ]
- Recursion = [ Ссылка ]
timeline:
0:00 - Intro
0:23 - create a tree
1:11 - implement setters and getters
1:55 - create a child node
2:40 - print tree as string
4:01 - has child node check
4:25 - unique id generator
5:03 - get child node
5:33 - remove child node
6:28 - append child node
9:38 - traverse and search tree
source code:
[ Ссылка ]
playlist:
[ Ссылка ]
blog
website = [ Ссылка ]
medium = [ Ссылка ]
follow @:
- Instagram = [ Ссылка ]
- twitter = [ Ссылка ]
- facebook = [ Ссылка ]
- codepen = [ Ссылка ]
![](https://i.ytimg.com/vi/F3zGFmPWQVU/maxresdefault.jpg)