An open API service indexing awesome lists of open source software.

https://github.com/nikasulo/super-balanced-tree

An algorithm that checks if a tree is super balanced
https://github.com/nikasulo/super-balanced-tree

Last synced: 4 months ago
JSON representation

An algorithm that checks if a tree is super balanced

Awesome Lists containing this project

README

          

# super-balanced-tree
An algorithm that checks if a tree is super balanced

## What is a super balanced tree?
A tree is "superbalanced" if the difference between the depths of any two leaf nodes ↴ is no greater than one.

## What is a leaf node?

A leaf node is a tree node with no children.

It's the "end" of a path to the bottom, from the root.

#### This algorithm is the bi-product of solving this [problem](https://www.interviewcake.com/question/ruby/balanced-binary-tree?course=fc1&section=trees-graphs) on [Interview Cake](https://www.interviewcake.com/), my new favourite resource to keep me challenged