The Avalanche Algorithm — How To Calculate the Maximum Possible Path in a Binary Tree

In this article we try to calculate the maximum possible path in a binary tree, describing a more efficient method than the brute force solution. » hackernoon.com | hackernoon.com

12 de febrero de 2024 · 1 min · 29 palabras · Nacho Cano

Solution: Construct Binary Tree from Preorder and Inorder Traversal

This is part of a series of Leetcode solution explanations (index). If you liked this solution or fou… » DEV Community | dev.to

9 de junio de 2021 · 1 min · 23 palabras · Nacho Cano

Solution: Convert Sorted List to Binary Search Tree

This is part of a series of Leetcode solution explanations (index). If you liked this solution or fou… » DEV Community | dev.to

6 de mayo de 2021 · 1 min · 23 palabras · Nacho Cano

WTF is a Binary Search Tree?

The binary tree is a type of data structure that is commonly used to represent hierarchical data. It is an efficient way of storing and organizing data that is ranked in parent nodes and child nodes. » hackernoon.com | hackernoon.com

7 de octubre de 2020 · 1 min · 40 palabras · Nacho Cano

How Do We Get a Balanced Binary Tree?

A binary tree can be empty, implying zero nodes in the tree. The cool thing about binary trees is that they are recursive structures. » DEV Community | dev.to

1 de septiembre de 2020 · 1 min · 29 palabras · Nacho Cano

How to check if a binary tree is balanced

An O(n) algorithm to check if a binary tree is balanced, by passing up the height from recursive calls. » jameshfisher.com | jameshfisher.com

8 de febrero de 2020 · 1 min · 23 palabras · Nacho Cano