Search⌘ K

What is an AVL Tree?

Explore the concept of AVL trees, a type of self-balancing binary search tree where subtree heights differ by at most one. Understand how this property ensures efficient search, insertion, and deletion operations by maintaining balance, and why it matters in coding interviews using JavaScript.

We'll cover the following...

Introduction

Named after inventors Adelson-Velsky and Landi, the AVL tree was invented in 1962. They claimed that AVL trees are “An algorithm for the organization of information”. They are Binary Search Trees in which for every internal node vv of the tree TT ...