Tag

recursion

0 views collected around this technical thread.

Raymond Ops
Raymond Ops
Apr 24, 2025 · Fundamentals

Master Recursion: Classic Python Examples and Core Concepts

This article introduces recursion, explains its definition and key characteristics, and demonstrates classic Python examples such as factorial calculation, Fibonacci sequence generation, and binary search, helping readers grasp how recursion simplifies complex problems compared to iterative loops.

Pythonalgorithmbinary search
0 likes · 8 min read
Master Recursion: Classic Python Examples and Core Concepts
Java Captain
Java Captain
Apr 23, 2025 · Fundamentals

Understanding Recursion in Java: Concepts, Pros/Cons, and Practical Examples

This article explains the fundamentals of recursion in Java, covering its definition, advantages and disadvantages, differences from iteration, and provides practical examples such as traversing comment and department trees, along with code snippets, performance considerations, and improvement strategies using depth control and Stream API.

Code ExampleJavaTree Traversal
0 likes · 7 min read
Understanding Recursion in Java: Concepts, Pros/Cons, and Practical Examples
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
Code Mala Tang
Code Mala Tang
Mar 9, 2025 · Fundamentals

What Really Happens Inside Python When You Call a Function?

This article explains step by step how Python creates a function object, builds a call stack, handles parameters, executes the body, performs garbage collection, and manages recursion, illustrating each stage with clear code examples and diagrams.

Function CallGarbage CollectionPython
0 likes · 8 min read
What Really Happens Inside Python When You Call a Function?
Test Development Learning Exchange
Test Development Learning Exchange
Mar 1, 2025 · Fundamentals

Python Function Nesting: Concepts, Applications, and Best Practices

This article explores Python function nesting, covering its basic concepts, practical applications, code examples, and important considerations for effective implementation in programming.

code encapsulationfunction nestingprogramming fundamentals
0 likes · 7 min read
Python Function Nesting: Concepts, Applications, and Best Practices
IT Services Circle
IT Services Circle
Feb 1, 2025 · Fundamentals

Understanding Dynamic Programming through Staircase and Knapsack Examples

This article walks through the fundamentals of dynamic programming by illustrating how to solve a staircase climbing problem and a 0/1 knapsack problem, explaining optimal substructure, state transition equations, boundary conditions, and providing both recursive and iterative C++ implementations.

algorithmdynamic programmingknapsack problem
0 likes · 12 min read
Understanding Dynamic Programming through Staircase and Knapsack Examples
Model Perspective
Model Perspective
Jan 16, 2025 · Fundamentals

What Is Technology Really? Exploring Its Essence and Evolution

The article reflects on the true nature of technology, describing it as a dynamic, recursive creative system that evolves through combinatorial innovation, recursion, and the capture of natural phenomena, and illustrates these mechanisms with examples from mathematics modeling and historical technological breakthroughs.

Innovationmodelingphilosophy
0 likes · 6 min read
What Is Technology Really? Exploring Its Essence and Evolution
JD Tech Talk
JD Tech Talk
Jan 13, 2025 · Backend Development

Recursive Order Merging Algorithm for JD Logistics Inbound Service

This article describes the background, problem definition, recursive algorithm design, Java implementation, deduplication logic, performance considerations, and business impact of a SKU‑level order merging solution for JD Logistics' inbound-to-warehouse process.

JavaLogisticsalgorithm
0 likes · 10 min read
Recursive Order Merging Algorithm for JD Logistics Inbound Service
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
Test Development Learning Exchange
Test Development Learning Exchange
Dec 3, 2024 · Fundamentals

10 Essential Python Recursion Techniques for Efficient and Safe Coding

This article presents ten practical Python recursion techniques—including base case identification, progressive convergence, tail‑recursion optimization, memoization, recursion depth management, generator usage, iterative alternatives, recursion‑tree visualization, hybrid approaches, and divide‑and‑conquer implementations—each illustrated with clear code examples to improve performance and avoid stack overflow.

AlgorithmsPerformancememoization
0 likes · 7 min read
10 Essential Python Recursion Techniques for Efficient and Safe Coding
php中文网 Courses
php中文网 Courses
Nov 8, 2024 · Backend Development

Simulating Recursion in PHP Using Stacks, Loops, and Goto

This article explains how to replace recursive functions in PHP with stack‑based iteration, loop‑driven depth‑first tree traversal, and even a goto‑based approach, providing complete code examples and discussing the trade‑offs of each method.

IterationStackalgorithm
0 likes · 7 min read
Simulating Recursion in PHP Using Stacks, Loops, and Goto
php中文网 Courses
php中文网 Courses
Aug 5, 2024 · Backend Development

Using PHP's array_replace_recursive() Function to Recursively Merge Arrays

This article explains PHP's array_replace_recursive() function, detailing its syntax, recursive merging behavior, example usage with code, output interpretation, important considerations, and compares it with array_merge_recursive() for effective backend array handling in PHP development.

PHParrayarray_merge_recursive
0 likes · 4 min read
Using PHP's array_replace_recursive() Function to Recursively Merge Arrays
Java Tech Enthusiast
Java Tech Enthusiast
Jul 26, 2024 · Fundamentals

From Binary to High-Level Languages: The Origin of Compilers and Recursion

From raw binary on punched tape to mnemonic assembly and then to high‑level constructs like if, while, and functions, programmers created recursive grammars that compile source code into abstract syntax trees, which a compiler translates back into machine instructions, illustrating how recursion underpins both programming language design and computation.

CPUCompilerassembly
0 likes · 11 min read
From Binary to High-Level Languages: The Origin of Compilers and Recursion
php中文网 Courses
php中文网 Courses
Jun 28, 2024 · Backend Development

Using PHP's array_replace_recursive() Function to Merge Arrays Recursively

This article explains the PHP array_replace_recursive() function, its syntax, recursive merging behavior, example usage with code snippets, output interpretation, important considerations, and a comparison with array_merge_recursive() for effective backend array handling.

PHParray mergingarray_replace_recursive
0 likes · 4 min read
Using PHP's array_replace_recursive() Function to Merge Arrays Recursively
php中文网 Courses
php中文网 Courses
May 23, 2024 · Fundamentals

Fast Multiplication of Large Integers Using PHP GMP Library

This article explains how to use PHP's GMP extension to perform fast multiplication of very large integers by applying a divide‑and‑conquer algorithm that reduces the computational complexity and provides a complete PHP implementation.

GMPPHPalgorithm
0 likes · 5 min read
Fast Multiplication of Large Integers Using PHP GMP Library
Python Programming Learning Circle
Python Programming Learning Circle
Feb 29, 2024 · Fundamentals

Understanding Happy Numbers: Definition, Python Implementations, and Real-World Applications

Happy numbers are positive integers that eventually reach 1 when repeatedly replaced by the sum of the squares of their digits; this article defines them, demonstrates Python implementations using recursion and sets, and explores practical uses in cryptography, game development, and data analysis.

CryptographyPythondata analysis
0 likes · 5 min read
Understanding Happy Numbers: Definition, Python Implementations, and Real-World Applications
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 29, 2024 · Fundamentals

Binary Search: Fundamentals, Common Implementations, and Applications

Binary search is an efficient O(log n) algorithm for locating elements in sorted arrays or intervals, and this article explains its basic principles, recursive and iterative implementations, handling of edge cases, applications such as log file indexing, and extensions to rotated arrays and variable‑length data.

Iterationalgorithmbinary search
0 likes · 18 min read
Binary Search: Fundamentals, Common Implementations, and Applications
php中文网 Courses
php中文网 Courses
Feb 7, 2024 · Backend Development

Using PHP's array_replace_recursive() Function to Merge Arrays Recursively

This article explains PHP's array_replace_recursive() function, detailing its syntax, recursive merging behavior, example usage with code snippets, output interpretation, and important considerations such as key overwriting and differences from array_merge_recursive(), providing developers with a practical guide for combining arrays.

PHParraybackend
0 likes · 4 min read
Using PHP's array_replace_recursive() Function to Merge Arrays Recursively
php中文网 Courses
php中文网 Courses
Jan 27, 2024 · Backend Development

Understanding PHP's array_merge_recursive() Function

This article explains the PHP array_merge_recursive() function, its syntax, parameters, return values, usage examples with code, and important considerations when merging multidimensional arrays, highlighting how duplicate keys are combined into arrays.

arraybackendmerge
0 likes · 4 min read
Understanding PHP's array_merge_recursive() Function