Tag

Binary Tree

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Apr 9, 2025 · Fundamentals

Pre-order Traversal in PHP: Recursive, Iterative, and Interactive Implementations

This article explains the concept of pre-order (root-left-right) tree traversal, demonstrates how to represent binary trees in PHP, provides recursive and stack‑based iterative implementations, and includes an interactive script that lets users build a tree and choose traversal methods, with full example code.

Binary TreeInteractivePHP
0 likes · 9 min read
Pre-order Traversal in PHP: Recursive, Iterative, and Interactive Implementations
Java Tech Enthusiast
Java Tech Enthusiast
Dec 12, 2024 · Fundamentals

LeetCode 814: Binary Tree Pruning

The article explains LeetCode 814, where a binary tree of 0s and 1s is pruned by recursively removing subtrees lacking a 1, using a post‑order traversal that returns null for nodes with value 0 and no retained children, achieving O(n) time and O(h) space.

Binary TreeC++Java
0 likes · 6 min read
LeetCode 814: Binary Tree Pruning
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 18, 2023 · Fundamentals

Binary Tree in Java: Representation, Traversal, and Common Operations

This article introduces binary trees, explains their Java representation, demonstrates pre-order, in-order, post-order, and level-order traversals, and provides implementations for creating full binary trees, counting nodes, computing height, and counting leaf nodes, complete with sample code and usage examples.

Binary TreeJavaTree Traversal
0 likes · 10 min read
Binary Tree in Java: Representation, Traversal, and Common Operations
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 13, 2021 · Fundamentals

Understanding Trees, Binary Trees, AVL Trees, and Red-Black Trees: Concepts, Properties, and Operations

This article explains the fundamentals of tree data structures—including general trees, binary trees, AVL balanced trees, and red‑black trees—covering their definitions, node types, properties, rotation techniques, and insertion and deletion algorithms with illustrative code examples.

AlgorithmsBinary TreeRed-Black Tree
0 likes · 17 min read
Understanding Trees, Binary Trees, AVL Trees, and Red-Black Trees: Concepts, Properties, and Operations
Wukong Talks Architecture
Wukong Talks Architecture
Mar 11, 2021 · Fundamentals

A Plain-Language Introduction to Binary Trees

This article uses the occasion of Tree‑Planting Day to explain binary trees in simple terms, covering their definition, node types, degree, levels, five tree shapes, traversal methods (pre‑order, in‑order, post‑order, level‑order), advantages, drawbacks, and a brief comparison with binary search.

Binary TreeTree Traversalalgorithm
0 likes · 9 min read
A Plain-Language Introduction to Binary Trees
DataFunTalk
DataFunTalk
Dec 25, 2020 · Fundamentals

Curated Collection of Algorithm and Data Structure Problems with Solution Articles

This article compiles a comprehensive list of over 400 algorithm and data‑structure problem solutions—including dynamic programming, backtracking, DFS/BFS, binary‑tree, linked‑list, stack, sorting, searching and classic puzzles—organized by topic and linked to detailed explanations for easy reference.

AlgorithmsBinary TreeLinked List
0 likes · 9 min read
Curated Collection of Algorithm and Data Structure Problems with Solution Articles
Architecture Digest
Architecture Digest
Oct 10, 2020 · Fundamentals

Understanding Binary Trees, BSTs, AVL, 2‑3‑4, B‑Tree and Red‑Black Tree

This article explains the concepts, properties, and operations of binary trees, binary search trees, AVL trees, 2‑3 and 2‑3‑4 trees, B‑trees, and red‑black trees, illustrating how they maintain balance, avoid degeneration, and are applied in modern software systems.

AVL TreeB+ TreeBalanced Tree
0 likes · 10 min read
Understanding Binary Trees, BSTs, AVL, 2‑3‑4, B‑Tree and Red‑Black Tree
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Apr 24, 2020 · Fundamentals

Comprehensive Introduction to Binary Trees in Java

This article provides a detailed overview of binary trees, covering their definition, traversal methods, various types such as full, complete, BST, and AVL trees, along with their characteristics, advantages, disadvantages, and time‑complexity considerations for Java developers.

AVLAlgorithmsBST
0 likes · 7 min read
Comprehensive Introduction to Binary Trees in Java
Selected Java Interview Questions
Selected Java Interview Questions
Feb 16, 2020 · Fundamentals

Comprehensive Collection of Common Binary Tree Interview Questions and Solutions

This article compiles a wide range of typical binary tree interview problems—including judgment, construction, storage, search, distance, and mixed challenges—provides detailed explanations, multiple solution approaches, and complete C code implementations for each, serving as a thorough study guide for interview preparation.

AlgorithmsBinary TreeC Programming
0 likes · 30 min read
Comprehensive Collection of Common Binary Tree Interview Questions and Solutions