ELI5: Binary Search Trees đźŚ˛. Letâ€™s talk about algorithms. Specifically, the binary search tree algorithm. In this post, Iâ€™m going to explain (like youâ€™re 5 years old). What is a Binary Search Tree? The tree is made up of things called nodes. The ELI5 Algorithms Series.

Letâ€™s talk about algorithms. Specifically, the binary search tree algorithm. In this post, Iâ€™m going to explain (like youâ€™re 5 years old) what a binary search tree is, how to implement it, and when we use it. Ready? Letâ€™s go!

A binary search tree is an ordered tree data structure. Itâ€™s a convenient way to sort some data according to a set of â€śgreater than/less thanâ€ť rules.

The tree is made up of things called nodes. Whenever you add new data to your tree, it begins its sorting journey starting from the root node and going down the tree from there until it finds an empty position to insert itself at. More on those technical terms soon.

New nodes finding a home in our binary search tree

A Day with JavaScript Algorithms.

This tricky Kadaneâ€™s Algorithm with a deceptively simple solution is a great introduction to more optimal problem-solving practices. Continue ...

Exercise from Eloquent JavaScript. Today, we will write a function that forms a chessboard. You can find the exercise in the Eloquent Javascript book (3rd edition, chapter 2; Program Structure). Write a program that creates a string that represents an 8Ă—8 grid, using newline characters to separate lines. At each position of the grid there is either a space or a â€ś#â€ť character. The characters should form a chessboard.

JavaScript implementation of data-structures and algorithms mentioned in this playlist may be found here https://github.com/trekhleb/javascript-algorithms

To paraphrase the title of an old computer science textbook, â€śAlgorithms + Data = Programs.â€ť The first step in learning a programming language such as JavaScript is to learn what types of data the language can work with. The second step is to learn how to store that data in variables. In this article Iâ€™ll discuss the different types of data you can work with in a JavaScript program and how to create and use variables to store and manipulate that data.