Tagged articles
23 articles
Page 1 of 1
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.

IterativePHPPre-order
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.

CJavaLeetCode
0 likes · 6 min read
LeetCode 814: Binary Tree Pruning
Hulu Beijing
Hulu Beijing
Aug 31, 2022 · Fundamentals

Algorithm Trio: Pattern Search, Tree Leaf Count, and Bounded Stock Trading

This article presents three algorithmic challenges: counting pattern occurrences on an M×N canvas, determining the number of leaf nodes in a binary tree represented by an array, and maximizing stock trade profit under constraints on negative returns and total gain, each with input specifications, sample cases, and solution outlines.

Constraintsalgorithmbinary tree
0 likes · 8 min read
Algorithm Trio: Pattern Search, Tree Leaf Count, and Bounded Stock Trading
Intelligent Backend & Architecture
Intelligent Backend & Architecture
May 13, 2021 · Fundamentals

Mastering Data Structures: From Basics to Advanced Implementations

This comprehensive guide explains core data concepts, defines data, data objects, elements and types, explores logical and physical structures, details sequential, linked, indexed and hash storage, and provides Java code examples for arrays, linked lists, stacks, queues, trees, binary search trees, AVL and red‑black trees, illustrating how to choose and implement appropriate structures for real‑world problems.

AlgorithmsData StructuresJava
0 likes · 24 min read
Mastering Data Structures: From Basics to Advanced Implementations
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.

AlgorithmsData StructuresRed-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.

algorithmbinary treefundamentals
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.

AlgorithmsBacktrackingData Structures
0 likes · 9 min read
Curated Collection of Algorithm and Data Structure Problems with Solution Articles
Alibaba Cloud Developer
Alibaba Cloud Developer
Aug 12, 2020 · Fundamentals

Unlock Core Data Structures, Algorithms, and Sorting Basics

This article provides a comprehensive introduction to fundamental data structures, core algorithm concepts, and classic sorting techniques, explaining their definitions, basic operations, time and space complexities, stability considerations, and practical use cases for developers seeking to strengthen their programming foundations.

AlgorithmsData StructuresSorting
0 likes · 20 min read
Unlock Core Data Structures, Algorithms, and Sorting Basics
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.

C programmingbinary treeinterview-questions
0 likes · 30 min read
Comprehensive Collection of Common Binary Tree Interview Questions and Solutions
JavaEdge
JavaEdge
Jan 2, 2020 · Fundamentals

How to Compute the Maximum Path Sum in a Binary Tree (C Solution)

This article explains the binary‑tree maximum path sum problem, provides example inputs and outputs, analyzes three possible path configurations, and presents both a brute‑force and an optimized depth‑first search implementation in C.

CDFSalgorithm
0 likes · 5 min read
How to Compute the Maximum Path Sum in a Binary Tree (C Solution)
Senior Brother's Insights
Senior Brother's Insights
Dec 21, 2019 · Fundamentals

Master Recursion: From Basics to Advanced Techniques with Time‑Complexity Insights

This article explains the concept of recursion, presents a universal four‑step solving method, and walks through multiple practical examples—from factorials and frog‑jump problems to binary‑tree inversion, Tower of Hanoi, and cellular division—while detailing time and space complexity analyses and optimization strategies.

Recursionbinary treedynamic programming
0 likes · 22 min read
Master Recursion: From Basics to Advanced Techniques with Time‑Complexity Insights
FunTester
FunTester
Aug 26, 2019 · Fundamentals

How to Check If a Binary Tree Is Symmetric in O(n) Time

This article explains the symmetric‑tree problem, outlines a depth‑first recursive strategy with base‑case checks, demonstrates short‑circuit evaluation, analyzes time complexity, and provides a complete Java implementation that determines tree symmetry in linear time.

DFSJavaRecursion
0 likes · 3 min read
How to Check If a Binary Tree Is Symmetric in O(n) Time