Learn Binary Search Trees in JavaScript: Adding Nodes - Pt 1

preview_player
Показать описание
In computer science, a binary search tree (BST) is a type of data structure that allows for efficient searching and sorting of data. In this video tutorial, we will be covering how to add nodes to a BST in JavaScript. By the end of this video, you will have a strong understanding of how to implement the add method and how it affects the overall structure of the BST.

Tags: #javascript #bst #binarysearchtree #datastructures #webdevelopment #coding
Рекомендации по теме
Комментарии
Автор

One mistake that I made in this video was at 12:31 and something like that. where i directly put else part(In that case it will also run that code if val and node's val is equal). But in bst there shouldn't be any duplicate keys :)

codechit_en