Tag

algorithm

1 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Jun 4, 2025 · Backend Development

Detecting Duplicate Elements in an Array with PHP

This article explains how to determine whether an integer array contains any duplicate values using a PHP solution that iterates the array, stores seen elements in an associative map, and returns true on the first repeat, with O(n) time and space complexity.

Duplicate DetectionPHPSpace Complexity
0 likes · 4 min read
Detecting Duplicate Elements in an Array with PHP
IT Services Circle
IT Services Circle
Jun 3, 2025 · Fundamentals

LeetCode 764 – Order of Largest Plus Sign: Problem Explanation and Multi‑Language Solutions

This article presents the LeetCode 764 problem of finding the largest axis‑aligned plus sign in a binary grid, explains the preprocessing and simulation approach using four directional prefix arrays, analyzes time and space complexity, and provides complete Java, C++, Python, and TypeScript implementations.

JavaLeetCodePython
0 likes · 12 min read
LeetCode 764 – Order of Largest Plus Sign: Problem Explanation and Multi‑Language Solutions
php中文网 Courses
php中文网 Courses
May 29, 2025 · Backend Development

Fast Multiplication of Large Integers Using PHP GMP Library

This article introduces the GMP library for high‑precision arithmetic in PHP and explains a fast multiplication algorithm that reduces complexity by splitting large numbers, then provides a complete PHP implementation demonstrating recursive Karatsuba‑style multiplication for big integers.

GMPKaratsubaPHP
0 likes · 4 min read
Fast Multiplication of Large Integers Using PHP GMP Library
php中文网 Courses
php中文网 Courses
May 26, 2025 · Backend Development

Implementing Load‑Balancer‑Like Auto‑Decision Logic in PHP Applications

This article explores how to embed load‑balancer concepts such as intelligent request distribution, health checks, automatic failover, and dynamic strategy adjustment directly into PHP applications using algorithms like weighted round‑robin, response‑time balancing, and circuit‑breaker patterns, providing code examples and practical deployment scenarios.

BackendFailoverPHP
0 likes · 11 min read
Implementing Load‑Balancer‑Like Auto‑Decision Logic in PHP Applications
JD Tech Talk
JD Tech Talk
May 21, 2025 · Fundamentals

Aho-Corasick Automaton: Efficient Multi‑Pattern Text Search and Real‑Time Highlighting

This article explains the Aho‑Corasick automaton, a classic multi‑pattern matching algorithm that builds a Trie with fail pointers to achieve linear‑time search over massive keyword sets, and demonstrates a Java implementation for highlighting keywords in HTML documents.

Aho-CorasickCode ExampleJava
0 likes · 10 min read
Aho-Corasick Automaton: Efficient Multi‑Pattern Text Search and Real‑Time Highlighting
Java Tech Enthusiast
Java Tech Enthusiast
May 15, 2025 · Fundamentals

Detect Squares Problem – Algorithm Design, Hash‑Map Solutions, and Complexity Analysis

The article first highlights Tencent's Q1 2025 financial results and user metrics, then introduces the LeetCode 2013 'Detect Squares' problem, describing its requirements, example, and offering Java, C++, Python, and array‑based solutions along with time and space complexity analysis.

C++DataStructureDetectSquares
0 likes · 9 min read
Detect Squares Problem – Algorithm Design, Hash‑Map Solutions, and Complexity Analysis
IT Services Circle
IT Services Circle
May 13, 2025 · Fundamentals

Maximum Number of Non-Overlapping Subarrays with Sum Equals Target (LeetCode 1546)

The article first critiques a hiring manager’s salary‑balance rationale for a 985‑master candidate, then presents LeetCode problem 1546 on finding the maximum number of non‑overlapping subarrays whose sums equal a target, explaining the solution using prefix sums and providing Java and C++ implementations.

C++Data StructuresJava
0 likes · 6 min read
Maximum Number of Non-Overlapping Subarrays with Sum Equals Target (LeetCode 1546)
JD Tech Talk
JD Tech Talk
May 13, 2025 · Operations

Intelligent Supply Chain Planning Algorithms and Their Applications

The article introduces intelligent supply chain planning algorithms—including network design, inventory layout, and simulation—detailing their optimization models, high‑performance solving techniques, and real‑world impact on cost reduction, efficiency, and service experience across large‑scale logistics operations.

LogisticsOperationsOptimization
0 likes · 12 min read
Intelligent Supply Chain Planning Algorithms and Their Applications
JD Retail Technology
JD Retail Technology
May 13, 2025 · Operations

Intelligent Planning Algorithms and Their Applications in Supply Chain Optimization

The article presents how operations‑optimization and simulation algorithms empower supply‑chain planning—covering network design, inventory layout, and large‑scale simulation—to achieve cost reduction, efficiency gains, and enhanced user experience through advanced algorithmic solutions.

OptimizationSimulationalgorithm
0 likes · 9 min read
Intelligent Planning Algorithms and Their Applications in Supply Chain Optimization
php中文网 Courses
php中文网 Courses
May 9, 2025 · Fundamentals

Detecting Duplicate Elements in an Array Using PHP

This article explains how to determine whether an integer array contains any duplicate values by iterating through the elements, using an associative map in PHP to track occurrences, and returning true if a repeat is found or false otherwise, including code examples and analysis of time and space complexity.

Duplicate DetectionPHPalgorithm
0 likes · 4 min read
Detecting Duplicate Elements in an Array Using PHP
IT Services Circle
IT Services Circle
May 4, 2025 · Fundamentals

LeetCode 407 – Trapping Rain Water II solved with a Dijkstra‑style Priority Queue

The article first discusses how many large companies now filter candidates by strict academic degree requirements, then presents LeetCode problem 407 (Trapping Rain Water II) and provides a detailed Dijkstra‑variant solution using a min‑heap, including full Java and C++ implementations and complexity analysis.

C++DijkstraJava
0 likes · 10 min read
LeetCode 407 – Trapping Rain Water II solved with a Dijkstra‑style Priority Queue
Java Tech Enthusiast
Java Tech Enthusiast
Apr 26, 2025 · Fundamentals

Valid Parentheses Problem – Solution, Explanation, and Mid‑Career Insights

The article reflects on why mid‑career engineers are often relegated to legacy‑maintenance work, argues that such roles can be leveraged for growth by modernizing systems and adopting AI, and then presents the classic Valid Parentheses coding challenge, explaining a stack‑based solution with implementations, complexity analysis, and common pitfalls.

C++JavaPython
0 likes · 14 min read
Valid Parentheses Problem – Solution, Explanation, and Mid‑Career Insights
Java Tech Enthusiast
Java Tech Enthusiast
Apr 25, 2025 · Fundamentals

Effective Reverse Questions for Algorithm Interview Rounds

In algorithm‑focused internet company interviews, asking thoughtful reverse‑questions—such as the core competitiveness of algorithm engineers, challenging project problems, debugging experiences, and methods for guaranteeing correctness—demonstrates genuine interest, technical depth, and a passion for improvement, leaving a strong positive impression on interviewers.

Interviewalgorithmcareer advice
0 likes · 4 min read
Effective Reverse Questions for Algorithm Interview Rounds
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.

BackendCode ExampleJava
0 likes · 7 min read
Understanding Recursion in Java: Concepts, Pros/Cons, and Practical Examples
Code Mala Tang
Code Mala Tang
Apr 12, 2025 · Fundamentals

Master the Luhn Algorithm: Definition, Examples, and TypeScript Implementation

Learn what the Luhn (mod‑10) algorithm is, its real‑world applications such as credit‑card and IMEI validation, step‑by‑step calculation examples, and see practical TypeScript and JavaScript implementations that you can integrate into your web projects.

JavaScriptLuhnValidation
0 likes · 6 min read
Master the Luhn Algorithm: Definition, Examples, and TypeScript Implementation
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
php中文网 Courses
php中文网 Courses
Apr 8, 2025 · Backend Development

Applying Prefix Sum Technique in PHP for Efficient Subarray Sum Queries

This article explains the concept of prefix sums, demonstrates how to build and use a prefix‑sum array in PHP with clear code examples, and discusses when the technique is advantageous and its limitations, enabling O(1) interval sum queries after an O(n) preprocessing step.

BackendPHPPerformance
0 likes · 10 min read
Applying Prefix Sum Technique in PHP for Efficient Subarray Sum Queries
php中文网 Courses
php中文网 Courses
Apr 7, 2025 · Backend Development

Implementing Sliding Window Algorithms in PHP for Real-Time Data Processing

This article introduces the sliding window technique, demonstrates efficient PHP implementations for computing averages and handling real-time streams, provides optimization strategies, and outlines practical applications such as financial analysis, network monitoring, and recommendation systems, highlighting performance considerations for backend development.

BackendPHPPerformance
0 likes · 6 min read
Implementing Sliding Window Algorithms in PHP for Real-Time Data Processing