Tagged articles

algorithm

659 articles · Page 1 of 7
Architect's Guide
Architect's Guide
Sep 17, 2026 · Fundamentals

How GeoHash Enables Efficient Nearby Passenger Search in Ride-Hailing Apps

This article explains the GeoHash algorithm, detailing how it converts latitude/longitude into binary strings via recursive bisection, interleaves bits, applies base32 encoding, and uses prefix matching to efficiently find nearby passengers in ride-hailing apps, while noting edge-case limitations.

GeoHashalgorithmbase32 encoding
0 likes · 8 min read
How GeoHash Enables Efficient Nearby Passenger Search in Ride-Hailing Apps
IT Services Circle
IT Services Circle
Sep 13, 2026 · Fundamentals

LeetCode 761: Special Binary String — Recursive Decomposition & Custom Sort Proof

This article analyzes LeetCode 761 Special Binary String, proving that valid strings decompose into minimal '1...0' units, then achieves maximum lexicographical order through recursive substring sorting and a custom comparator proven to satisfy total order properties (completeness, antisymmetry, transitivity), with Java, C++, and TypeScript implementations.

Custom SortingLeetCode 761Lexicographical Order
0 likes · 12 min read
LeetCode 761: Special Binary String — Recursive Decomposition & Custom Sort Proof
IT Learning Made Simple
IT Learning Made Simple
Sep 1, 2026 · Fundamentals

Why LRU Evicts the Least Recently Used Page First

The article explains the LRU (Least Recently Used) page‑replacement algorithm, its basis in the locality principle, hit‑rate example, various exact and approximate implementations—including counter, stack, linked‑list, Clock, Aging and Working‑Set methods—its hardware requirements, pros and cons, and practical uses such as a Python cache and Redis eviction policies.

CachingLRUMemory Management
0 likes · 10 min read
Why LRU Evicts the Least Recently Used Page First
liandk
liandk
Aug 29, 2026 · Fundamentals

Queue Essentials – Master FIFO for Queuing and Message Push

This tutorial explains the FIFO principle of queues with everyday analogies, compares stacks and queues, lists core operations, provides a full Python implementation, demonstrates real‑world scenarios like server requests and printer jobs, and highlights common beginner pitfalls.

BFSData StructuresFIFO
0 likes · 7 min read
Queue Essentials – Master FIFO for Queuing and Message Push
liandk
liandk
Aug 29, 2026 · Fundamentals

Stack Basics: LIFO Explained with Real‑World Examples and Python Code

This article introduces the stack data structure, explains its LIFO principle with everyday analogies like browser back and undo, compares it to arrays and linked lists, provides a complete Python implementation, demonstrates a simple undo simulation, and highlights common pitfalls for beginners.

Data StructuresLIFOPython
0 likes · 6 min read
Stack Basics: LIFO Explained with Real‑World Examples and Python Code
liandk
liandk
Aug 28, 2026 · Fundamentals

Episode 2: Linked List – Simple Array vs. List Comparison

This tutorial explains linked lists with a vivid array‑vs‑list analogy, outlines their core structure, shows real‑world scenarios, provides fully commented Python code with sample output, and highlights common pitfalls and a quick decision guide for choosing between arrays and linked lists.

Data StructuresPythonTutorial
0 likes · 6 min read
Episode 2: Linked List – Simple Array vs. List Comparison
liandk
liandk
Aug 26, 2026 · Fundamentals

Arrays Made Simple: The Fundamental Data Structure Everyone Can Master

This article explains arrays using a locker analogy, outlines their core characteristics and typical use cases, provides a complete Python example for basic operations with output, and highlights common beginner pitfalls such as zero‑based indexing and fixed length.

Pythonalgorithmarray
0 likes · 4 min read
Arrays Made Simple: The Fundamental Data Structure Everyone Can Master
Architecture Digest
Architecture Digest
Aug 19, 2026 · Big Data

How to Deduplicate 4 Billion QQ IDs with Only 1 GB Memory

The article explains how to solve the classic massive‑data deduplication problem of 4 billion QQ numbers within a 1 GB memory limit by analyzing memory requirements, comparing BitMap and Bloom filter approaches, and detailing a step‑by‑step BitMap implementation with its pros and cons.

BitmapMemory Optimizationalgorithm
0 likes · 5 min read
How to Deduplicate 4 Billion QQ IDs with Only 1 GB Memory
Insight Construct
Insight Construct
Aug 13, 2026 · Industry Insights

How WeChat Public Accounts' Traffic Logic Shifted in 2026: From Subscriptions to Algorithmic Recommendations

In 2026 the WeChat public‑account ecosystem moved from a fan‑driven subscription model to a public‑domain algorithmic recommendation system, where completion rate, share rate, interaction rate and click‑through rate now dictate exposure, making content quality and algorithm alignment the decisive factors for viral success.

WeChatalgorithmcompletion rate
0 likes · 12 min read
How WeChat Public Accounts' Traffic Logic Shifted in 2026: From Subscriptions to Algorithmic Recommendations
IT Services Circle
IT Services Circle
Aug 9, 2026 · Backend Development

How to Detect a 30‑Day Continuous Sign‑In for 1 B Users with 1 GB Memory

The article breaks down a large‑scale interview question, showing why storing each sign‑in as a database row is infeasible, how a bitmap compresses a year of data to 46 bytes per user, the pitfalls of BITCOUNT, the importance of key dimension design, and the exact Redis commands and local‑scan algorithms—including a five‑step bit‑wise trick—to reliably determine a 30‑day continuous sign‑in.

BitmapKey DesignRedis
0 likes · 9 min read
How to Detect a 30‑Day Continuous Sign‑In for 1 B Users with 1 GB Memory
samdeepthink
samdeepthink
Aug 6, 2026 · Interview Experience

Interview Question: Find the Single Occurring Number in an Array – Three Solutions

The article presents a classic interview problem of locating the unique element in an integer array where every other value appears twice, and walks through three Java 17 implementations—brute‑force double loop, HashMap counting, and a bitwise XOR trick—detailing their time and space trade‑offs and practical considerations.

Bitwise XORHashMapalgorithm
0 likes · 8 min read
Interview Question: Find the Single Occurring Number in an Array – Three Solutions
AI Architecture Hub
AI Architecture Hub
Jul 11, 2026 · Product Management

Reshaping Instagram for the AI Era: Insights from Head Mosseri

In an interview, Instagram head Adam Mosseri explains how AI is reshaping team structures, talent requirements, platform strategy, algorithm design, and content governance, emphasizing the continued importance of human judgment, taste, and transparent sourcing in a rapidly automated social ecosystem.

AIInstagramalgorithm
0 likes · 9 min read
Reshaping Instagram for the AI Era: Insights from Head Mosseri
Tinker Programmer
Tinker Programmer
Jun 30, 2026 · Fundamentals

Stop Using HashSet: Optimize LeetCode #3 Sliding Window from 8 ms to 2 ms

This article dissects the classic LeetCode #3 longest‑substring‑without‑repeating‑characters problem, shows why a HashSet‑based solution incurs heavy boxing overhead, and walks through three progressive optimizations—using a boolean array, index‑jumping with an int array, and refined update timing—to shrink runtime from 8 ms to about 2 ms, while highlighting common pitfalls and best‑practice guidelines.

HashSetLeetCodePerformance Optimization
0 likes · 12 min read
Stop Using HashSet: Optimize LeetCode #3 Sliding Window from 8 ms to 2 ms
IT Services Circle
IT Services Circle
Jun 24, 2026 · Interview Experience

What Does a Stack Actually Remember in the Valid Parentheses Problem?

The article explains that a stack used for the valid‑parentheses interview question stores pending expectations rather than raw characters, why this LIFO structure is essential over a simple counter, and highlights common pitfalls and deeper follow‑up questions.

Data StructuresLIFOalgorithm
0 likes · 9 min read
What Does a Stack Actually Remember in the Valid Parentheses Problem?
Tinker Programmer
Tinker Programmer
Apr 30, 2026 · Interview Experience

Go Problem Solving Log: Valid Sudoku – The Key Is Index Mapping

The author solves the classic Valid Sudoku challenge in Go, explaining why a fixed-size 9×9 array outperforms a generic map, how to map characters to zero‑based indices, compute sub‑grid positions, and maintain row, column, and block state efficiently.

Data StructuresGoSudoku
0 likes · 7 min read
Go Problem Solving Log: Valid Sudoku – The Key Is Index Mapping
Java Tech Enthusiast
Java Tech Enthusiast
Apr 19, 2026 · Interview Experience

Counting Boomerangs Efficiently: Hash‑Map Solution for LeetCode 447

This article explains how to count all boomerang tuples in a set of distinct points by using a hash‑map to store distance frequencies for each anchor point, achieving O(n²) time without costly square‑root calculations and providing Java, C++, and Python implementations.

BoomerangHashMapLeetCode
0 likes · 7 min read
Counting Boomerangs Efficiently: Hash‑Map Solution for LeetCode 447
Machine Learning Algorithms & Natural Language Processing
Machine Learning Algorithms & Natural Language Processing
Apr 10, 2026 · Artificial Intelligence

The Viral SBTI Test: Inside Its 15‑Dimensional Vector Matching Algorithm

The article dissects the viral SBTI personality test, revealing that its results are generated by a hybrid human‑AI workflow that encodes answers into a 15‑dimensional vector, bins scores, and matches them against predefined templates using simple distance calculations and special fallback rules.

15-dimensionalAISBTI
0 likes · 11 min read
The Viral SBTI Test: Inside Its 15‑Dimensional Vector Matching Algorithm
Java Tech Enthusiast
Java Tech Enthusiast
Feb 28, 2026 · Fundamentals

Efficient Java Solution to Count Digit 1 Occurrences from 1 to n

The article first reflects on the importance of quick reaction and solid fundamentals for new developers, then presents an efficient Java implementation that counts how many times the digit 1 appears in the range 1 to n using a digit‑by‑digit analysis.

Digit Countingalgorithminterview
0 likes · 5 min read
Efficient Java Solution to Count Digit 1 Occurrences from 1 to n
Java Tech Enthusiast
Java Tech Enthusiast
Feb 8, 2026 · Fundamentals

Detecting Powers of Two in Java: Bitwise Tricks and Edge Cases

The author shares a workplace frustration about unfair performance metrics, then illustrates how a hidden 1024‑byte boundary bug led to a discussion of the classic “power‑of‑two” problem, providing clear bit‑wise logic, edge‑case handling, and ready‑to‑run Java code for detecting powers of two.

Power of Twoalgorithmbit-manipulation
0 likes · 6 min read
Detecting Powers of Two in Java: Bitwise Tricks and Edge Cases
TonyBai
TonyBai
Feb 3, 2026 · Fundamentals

Unmasking the Algorithm Myth: Russ Cox’s 15‑Year Quest to Simplify Float‑to‑Decimal Conversion

Russ Cox revisits the half‑century‑old challenge of converting binary floating‑point numbers to shortest, correct decimal strings, presenting a new unrounded‑scaling algorithm that outperforms Dragonbox and Ryū while remaining simple, and explains its integration into Go 1.27 with detailed benchmarks and proofs.

GoPerformancealgorithm
0 likes · 10 min read
Unmasking the Algorithm Myth: Russ Cox’s 15‑Year Quest to Simplify Float‑to‑Decimal Conversion
Java Tech Enthusiast
Java Tech Enthusiast
Jan 31, 2026 · Interview Experience

How to Remove the Most Edges While Keeping a Graph Fully Traversable for Alice and Bob

Given an undirected graph with three edge types—Alice‑only, Bob‑only, and shared—the task is to delete the maximum number of edges while still allowing both Alice and Bob to reach every node; the solution uses a two‑union‑find strategy, processes shared edges first, then exclusive ones, and returns the count or -1.

GraphLeetCodealgorithm
0 likes · 9 min read
How to Remove the Most Edges While Keeping a Graph Fully Traversable for Alice and Bob
Code Wrench
Code Wrench
Jan 23, 2026 · Backend Development

Mastering Task Prioritization in Go: Build a Robust Priority Queue

This article explains why simple FIFO task handling in Go services can drown critical work, introduces priority queues as the algorithmic solution, and provides a complete, thread‑safe implementation with practical examples and common pitfalls.

BackendHeapalgorithm
0 likes · 7 min read
Mastering Task Prioritization in Go: Build a Robust Priority Queue
Tencent Advertising Technology
Tencent Advertising Technology
Jan 22, 2026 · Artificial Intelligence

How Tencent’s Bidding Algorithms Evolved from GMPC to GRB: A Deep Dive into Generative RL for Ads

The article reviews the 2025 evolution of Tencent advertising’s bidding system—from the second‑generation GMPC control algorithm through the third‑generation MRB reinforcement‑learning model to the fourth‑generation generative RL GRB—detailing architectural upgrades, multi‑channel modeling, training pipelines, and experimental gains, and outlines the 2026 AI‑agent roadmap.

AdvertisingGenerative Modelsalgorithm
0 likes · 15 min read
How Tencent’s Bidding Algorithms Evolved from GMPC to GRB: A Deep Dive into Generative RL for Ads
Code Wrench
Code Wrench
Jan 20, 2026 · Backend Development

Mastering API Rate Limiting in Go: Practical Algorithms and Implementation

This article walks through real‑world Go rate‑limiting strategies—from naive checks to fixed, sliding, and token‑bucket algorithms—explaining their pitfalls, implementation details, performance trade‑offs, and practical tips for choosing and deploying the right solution in production services.

Backendalgorithmgolang
0 likes · 10 min read
Mastering API Rate Limiting in Go: Practical Algorithms and Implementation
JD Tech
JD Tech
Jan 16, 2026 · Artificial Intelligence

How JD’s AI Shopping App Redefines E‑Commerce with Intent‑Driven Minimalism

The article examines JD’s AI‑powered shopping app, detailing its chatbot‑style interface, intent‑driven workflow, AI‑enhanced product recommendation, multi‑scenario integration such as travel and dining, and the underlying research on Fast‑Slow thinking and the SA‑GCPO algorithm that powers the experience.

AIProduct Reviewalgorithm
0 likes · 12 min read
How JD’s AI Shopping App Redefines E‑Commerce with Intent‑Driven Minimalism
php Courses
php Courses
Jan 13, 2026 · Backend Development

How to Detect Duplicate Elements in a PHP Array in O(n) Time

This article explains how to determine whether an integer array contains any duplicate values using a PHP solution that leverages an associative map to achieve linear time and space complexity, complete with example inputs, detailed code walkthrough, and complexity analysis.

PHPalgorithmarray
0 likes · 4 min read
How to Detect Duplicate Elements in a PHP Array in O(n) Time
Su San Talks Tech
Su San Talks Tech
Dec 30, 2025 · Backend Development

How I Cut Category Tree Load Time from 3 Seconds to 30 Milliseconds

A real‑world performance disaster caused by N+1 queries in a SpringBoot project was solved by replacing recursive database calls with a single batch query, building an in‑memory hash map, and adding multi‑level caching, achieving a 100× speedup and dramatically reducing system load.

CachingN+1Optimization
0 likes · 19 min read
How I Cut Category Tree Load Time from 3 Seconds to 30 Milliseconds
Code Mala Tang
Code Mala Tang
Dec 28, 2025 · Fundamentals

How to Find the Longest Substring Without Repeating Characters in O(n)

This article explains the problem of finding the longest substring without repeating characters, demonstrates a brute‑force O(n³) solution with code, then introduces an optimized sliding‑window approach that runs in linear time O(n), including detailed implementation, complexity analysis, and key insights.

Stringalgorithmbrute-force
0 likes · 5 min read
How to Find the Longest Substring Without Repeating Characters in O(n)
IT Services Circle
IT Services Circle
Dec 21, 2025 · Fundamentals

How to Shuffle an Array Uniformly in Java: Fisher‑Yates Solution Explained

The article starts with a brief comment on recent layoffs before diving into the classic interview problem of shuffling an integer array uniformly, explaining why naive random swaps fail, detailing the Fisher‑Yates algorithm, and providing a complete Java implementation with key practical tips.

Array ShuffleFisher-YatesLeetCode
0 likes · 7 min read
How to Shuffle an Array Uniformly in Java: Fisher‑Yates Solution Explained
Java Companion
Java Companion
Dec 18, 2025 · Backend Development

Building a High‑Performance Sensitive‑Word Filter with SpringBoot and DFA

This article explains why traditional string‑search and regex methods struggle with large keyword sets, introduces the deterministic finite automaton (DFA) approach using a Trie structure for linear‑time matching, provides full Java implementations, and discusses real‑world applications and advanced optimizations such as double‑array Tries, Aho‑Corasick, and sharding with Bloom filters.

DFASensitiveWordFilterSpringBoot
0 likes · 17 min read
Building a High‑Performance Sensitive‑Word Filter with SpringBoot and DFA
Code Ape Tech Column
Code Ape Tech Column
Nov 20, 2025 · Backend Development

Build a Millisecond‑Scale Sensitive Word Filter with DFA and Trie in Java

This article explains why traditional string matching and regex struggle with large keyword sets, introduces a DFA‑based solution using a Trie tree for linear‑time detection, provides full Java implementations, shows real‑world integration scenarios, and explores advanced optimizations such as double‑array tries, Aho‑Corasick automata, and sharding with Bloom filters.

DFASensitive Word FilteringTrie
0 likes · 17 min read
Build a Millisecond‑Scale Sensitive Word Filter with DFA and Trie in Java
Raymond Ops
Raymond Ops
Nov 17, 2025 · Operations

Master Nginx Load Balancing: Algorithms, Configs, and Real‑World Examples

This article explains how Nginx functions as a load balancer, covering its event‑driven architecture, reverse‑proxy setup, and five common balancing algorithms—round‑robin, least connections, IP hash, weighted round‑robin, and weighted least connections—along with detailed configuration examples and performance metrics.

algorithmload balancingreverse proxy
0 likes · 10 min read
Master Nginx Load Balancing: Algorithms, Configs, and Real‑World Examples
IT Services Circle
IT Services Circle
Oct 8, 2025 · Fundamentals

How a 9th‑Century Mathematician Gave Us the Word “Algorithm”

The article traces the rise and fall of Khwarezm, the life of Al‑Khwarizmi, his pioneering work in algebra that coined the term “algorithm,” the translation movement of the House of Wisdom, and how these medieval breakthroughs shaped modern mathematics and computing.

Al-KhwarizmiAlgebraArabic numerals
0 likes · 7 min read
How a 9th‑Century Mathematician Gave Us the Word “Algorithm”
Deepin Linux
Deepin Linux
Oct 1, 2025 · Fundamentals

Why Deque Beats Vector and List: Inside the Double‑Ended Queue’s Magic

This article explains how the C++ deque combines the random‑access speed of a vector with the constant‑time double‑ended insertions of a list by using a segmented storage architecture, detailing its internal map, iterator mechanics, core operations, performance comparisons, practical use cases, and common pitfalls.

C++Performancealgorithm
0 likes · 47 min read
Why Deque Beats Vector and List: Inside the Double‑Ended Queue’s Magic
Python Programming Learning Circle
Python Programming Learning Circle
Sep 26, 2025 · Game Development

How to Build a Python Missile‑Tracking Demo with Pygame – Step‑by‑Step Guide

This article explains a simple Python missile‑tracking algorithm using Pygame, covering the mathematical basis of time‑sliced vector calculations, triangle geometry for direction and distance, and detailed code that handles movement, rotation, and image offset to keep the missile tip aligned with the target.

Missile TrackingPygamePython
0 likes · 10 min read
How to Build a Python Missile‑Tracking Demo with Pygame – Step‑by‑Step Guide
NiuNiu MaTe
NiuNiu MaTe
Sep 22, 2025 · Big Data

How to De‑duplicate 4 Billion QQ Numbers with Only 1 GB RAM

Learn four practical techniques—simple sorting, hashmap deduplication, external merge sort, and bitmap bit‑set optimization—to efficiently remove duplicate QQ numbers from a 40‑billion‑record file while staying within a strict 1 GB memory limit, even handling tighter 100 MB constraints.

Bitmapalgorithmbig data
0 likes · 9 min read
How to De‑duplicate 4 Billion QQ Numbers with Only 1 GB RAM
IT Services Circle
IT Services Circle
Sep 8, 2025 · Fundamentals

How to Count Subarrays with Sum K Using Prefix Sum and HashMap

This article first highlights Ctrip's employee benefits, then presents the LeetCode 560 subarray sum problem with detailed explanations and multi-language implementations using prefix sum and hash map, including Java, C++, Python, and TypeScript solutions, and discusses time and space complexities.

C++LeetCodePrefix Sum
0 likes · 6 min read
How to Count Subarrays with Sum K Using Prefix Sum and HashMap
JD Tech Talk
JD Tech Talk
Sep 8, 2025 · Artificial Intelligence

How I Turned a Generic LLM into a Precise E‑Commerce Risk Detector

The article recounts how a risk‑control algorithm engineer progressively refined a generic large language model through four stages of prompt engineering—defining roles, dimensions, structured I/O, business rules, behavior fingerprints, and a dual‑hypothesis decision framework—to transform it into a precise e‑commerce fraud detection expert.

AILLMalgorithm
0 likes · 10 min read
How I Turned a Generic LLM into a Precise E‑Commerce Risk Detector
IT Services Circle
IT Services Circle
Aug 29, 2025 · Backend Development

Why Smooth Weighted Round Robin Works: The Math Behind Balanced Load Distribution

This article explains the smooth weighted round robin algorithm, contrasts it with the non‑smooth version, walks through step‑by‑step examples for a 5:1:1 server weight scenario, and provides mathematical proofs of both weight correctness and smoothness, including references to the original source.

algorithmdistributed systemsload balancing
0 likes · 15 min read
Why Smooth Weighted Round Robin Works: The Math Behind Balanced Load Distribution
IT Services Circle
IT Services Circle
Aug 25, 2025 · Fundamentals

How to Efficiently Compress Strings in Java: Interview‑Ready Solution

The article critiques absurd interview questions, then presents a practical Java solution for compressing strings by replacing consecutive characters with their counts, explains the algorithm’s O(n) time and O(1) extra space, discusses edge cases like multi‑digit counts and Unicode handling, and offers implementation tips.

String Compressionalgorithminterview question
0 likes · 6 min read
How to Efficiently Compress Strings in Java: Interview‑Ready Solution
Sohu Smart Platform Tech Team
Sohu Smart Platform Tech Team
Aug 9, 2025 · Artificial Intelligence

How SimHash and Cosine Similarity Accelerate Large-Scale Text Deduplication

This article explains why traditional pairwise text comparison is impractical for massive news corpora, introduces cosine similarity and SimHash as efficient deduplication techniques, walks through their mathematical foundations, step‑by‑step implementation details, code examples, and discusses trade‑offs such as accuracy versus speed.

SimHashalgorithmbig data
0 likes · 12 min read
How SimHash and Cosine Similarity Accelerate Large-Scale Text Deduplication
Python Crawling & Data Mining
Python Crawling & Data Mining
Jul 28, 2025 · Fundamentals

How to Accurately Detect Palindromes in Python: Multiple Approaches Explained

This article walks through a Python community member's question about checking whether a number is a palindrome, presents the original flawed code, and then offers several correct implementations—including a for‑else solution, an all‑function check, and a slicing method—while explaining the underlying logic.

String Manipulationalgorithmfor-else
0 likes · 5 min read
How to Accurately Detect Palindromes in Python: Multiple Approaches Explained
IT Services Circle
IT Services Circle
Jul 20, 2025 · Fundamentals

Master Student Geographic Aggregation in Java with Nested Maps

This article explains how to solve the Student Geographic Information Report problem by defining a Student class, using three‑level nested Java Maps for province‑city‑district grouping, and implementing aggregation and ranking logic to count students per region and identify the city with the most students.

Geographic InformationStudent Dataalgorithm
0 likes · 6 min read
Master Student Geographic Aggregation in Java with Nested Maps
Deepin Linux
Deepin Linux
Jul 15, 2025 · Fundamentals

Mastering LRU Cache: Theory, C++ Implementation, and Interview Strategies

This article explains the core principles of the Least Recently Used (LRU) cache algorithm, details its operation and complexity, provides a complete C++ implementation with line-by-line analysis, showcases test cases, and offers practical interview tips and extensions such as LFU and LRU‑K.

C++LRUalgorithm
0 likes · 18 min read
Mastering LRU Cache: Theory, C++ Implementation, and Interview Strategies
IT Services Circle
IT Services Circle
Jun 27, 2025 · Fundamentals

How to Solve the Champagne Tower Problem on LeetCode with Linear DP

The article first reflects on ByteDance's expanding English testing policy, then presents LeetCode problem 799 “Champagne Tower”, describing its mechanics and offering a linear‑DP solution with full implementations in Java, C++, Python and TypeScript, along with complexity analysis.

C++DPLeetCode
0 likes · 8 min read
How to Solve the Champagne Tower Problem on LeetCode with Linear DP
Java Web Project
Java Web Project
Jun 25, 2025 · Backend Development

How to Speed Up Nested Loops in Java: Break and Map Tricks

This article walks through a common Java scenario of matching two large lists with nested loops, measures the poor performance, then demonstrates two optimizations—adding a break statement and replacing the inner loop with a HashMap—to dramatically cut execution time.

HashMapNested LoopOptimization
0 likes · 6 min read
How to Speed Up Nested Loops in Java: Break and Map Tricks
MaGe Linux Operations
MaGe Linux Operations
Jun 20, 2025 · Backend Development

Master Nginx Load Balancing: Algorithms, Reverse Proxy, and Real‑World Configs

This article explains how Nginx functions as a load balancer and reverse proxy, detailing its event‑driven architecture, multi‑process model, and core configuration, and compares common algorithms such as round‑robin, least‑connections, IP‑hash, weighted round‑robin, and weighted least‑connections with practical code examples.

BackendConfigurationNginx
0 likes · 10 min read
Master Nginx Load Balancing: Algorithms, Reverse Proxy, and Real‑World Configs
Architect's Guide
Architect's Guide
Jun 18, 2025 · Fundamentals

Master LRU Cache: O(1) Implementation with Hash-Linked List in Java

Learn how to design and implement an O(1) LRU (Least Recently Used) cache in Java using a combined hash map and doubly linked list, covering algorithm concepts, data structure choices, method details, and complete code with examples and explanations.

Doubly Linked ListLRU CacheO(1) Operations
0 likes · 10 min read
Master LRU Cache: O(1) Implementation with Hash-Linked List in Java
Code Mala Tang
Code Mala Tang
Jun 17, 2025 · Backend Development

Mastering Rate Limiting: Algorithms, Redis & Lua for Scalable Backend APIs

This article explains the concept of rate limiting, compares five common algorithms—including fixed‑window, sliding‑log, sliding‑window counter, token bucket and leaky bucket—covers distributed designs using Redis and Lua scripts, and provides complete FastAPI implementation and pytest tests for both fixed‑window and sliding‑log strategies.

BackendFastAPILua
0 likes · 13 min read
Mastering Rate Limiting: Algorithms, Redis & Lua for Scalable Backend APIs
JD Tech
JD Tech
Jun 16, 2025 · Operations

How Advanced Optimization and Simulation Algorithms Transform Supply Chain Planning

This article explores how cutting‑edge optimization and simulation techniques empower supply‑chain planning—covering network design, inventory layout, and large‑scale scenario modeling—to reduce costs, improve efficiency, and enhance user experience through fast, scalable algorithms and AI‑driven insights.

OptimizationSimulationSupply Chain
0 likes · 9 min read
How Advanced Optimization and Simulation Algorithms Transform Supply Chain Planning
Qunhe Technology Quality Tech
Qunhe Technology Quality Tech
Jun 12, 2025 · Artificial Intelligence

Boosting CAD & Ad Design Algorithms with a Goldenset Review Platform

The article describes how a custom algorithm review platform, built around goldenset test cases, quantifies and visualizes CAD recognition and advertising design tool outputs, enabling rapid regression testing, objective metric tracking, and efficient manual review, ultimately improving development speed and bug detection rates.

AdvertisingCADalgorithm
0 likes · 12 min read
Boosting CAD & Ad Design Algorithms with a Goldenset Review Platform
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.

PHPalgorithmarray
0 likes · 4 min read
Detecting Duplicate Elements in an Array with PHP
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
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.

OperationsOptimizationSimulation
0 likes · 12 min read
Intelligent Supply Chain Planning Algorithms and Their Applications
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++CareerPython
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.

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

FibonacciPythonalgorithm
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 Examplealgorithmjava
0 likes · 7 min read
Understanding Recursion in Java: Concepts, Pros/Cons, and Practical Examples
Nullbody Notes
Nullbody Notes
Apr 15, 2025 · Interview Experience

My Journey of Repeating LeetCode: Turning Obstacles into Interview Success

The author shares a personal roadmap of solving over 150 high‑frequency Go algorithm problems from CodeTop, emphasizing relentless repetition, concrete examples like the compressed prefix tree in Gin, and practical tips for turning algorithm practice into interview confidence.

CodeTopCompressed Prefix TreeGo
0 likes · 7 min read
My Journey of Repeating LeetCode: Turning Obstacles into Interview Success
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.

PHPPre-orderalgorithm
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
JD Cloud Developers
JD Cloud Developers
Apr 8, 2025 · Fundamentals

Which String Replacement Method Is Fastest? A Java Performance Comparison

This article examines various Java string‑replacement techniques—including simple replace, regex, Aho‑Corasick, and custom Trie implementations—by presenting their design, code samples, and detailed performance benchmarks to help developers choose the most efficient solution for large keyword sets.

Aho-CorasickJava performanceTrie
0 likes · 13 min read
Which String Replacement Method Is Fastest? A Java Performance Comparison
Java Tech Enthusiast
Java Tech Enthusiast
Apr 6, 2025 · Fundamentals

Git Rebase vs Merge and Number-to-String Translation Using Dynamic Programming

The article compares git rebase and git merge—explaining that merge preserves history with extra commits while rebase creates a linear log but rewrites public history—then presents a dynamic‑programming solution for translating a numeric string to letters, using dp[i]=dp[i‑1]+dp[i‑2] when the two‑digit slice is between 10 and 25, achieving O(n) time.

Gitalgorithmdynamic programming
0 likes · 6 min read
Git Rebase vs Merge and Number-to-String Translation Using Dynamic Programming
Cognitive Technology Team
Cognitive Technology Team
Apr 2, 2025 · Backend Development

Understanding Rate Limiting: Importance, Types, Algorithms, and Implementation

This article explains the concept of rate limiting in system design, covering its importance, common use cases, various types, popular algorithms such as token bucket and leaky bucket, implementation across different system layers, and the challenges associated with configuring and scaling rate‑limiting solutions.

BackendSystem Designalgorithm
0 likes · 10 min read
Understanding Rate Limiting: Importance, Types, Algorithms, and Implementation
php Courses
php Courses
Apr 2, 2025 · Fundamentals

Implementing a Queue Using Two Stacks in PHP

This article explains the principles of queues and stacks, demonstrates how to simulate a FIFO queue using two LIFO stacks in PHP, provides full source code, usage examples, complexity analysis, and discusses practical applications and possible extensions.

ComplexityPHPQueue
0 likes · 5 min read
Implementing a Queue Using Two Stacks in PHP
Qunar Tech Salon
Qunar Tech Salon
Mar 27, 2025 · Operations

Automated Capacity Planning and Auto‑Scaling for Hotel Services During Traffic Peaks

This document describes a comprehensive capacity‑planning solution that predicts traffic‑peak impacts for hotel services, automatically estimates required CPU resources, creates timed scaling tasks, and evaluates performance using detailed metrics, thereby improving operational efficiency and reducing manual effort during events such as exam‑ticket printing and holiday travel surges.

Cloud ComputingOperationsalgorithm
0 likes · 12 min read
Automated Capacity Planning and Auto‑Scaling for Hotel Services During Traffic Peaks
Python Crawling & Data Mining
Python Crawling & Data Mining
Mar 15, 2025 · Fundamentals

5 Ways to Count Consecutive Elements in a Python List

This article walks through a Python list problem where you need to compute the length of consecutive identical elements, presenting five distinct code solutions with explanations, sample inputs, and output visualizations to help readers understand and apply the techniques.

Code ExamplesListPython
0 likes · 6 min read
5 Ways to Count Consecutive Elements in a Python List
AI Code to Success
AI Code to Success
Mar 12, 2025 · Artificial Intelligence

Mastering K‑Means: Theory, Implementation, and Real‑World Applications

This comprehensive guide explores the K‑Means clustering algorithm, covering its mathematical foundation, step‑by‑step procedure, centroid initialization strategies, practical implementation with Python’s Scikit‑learn on the Iris dataset, evaluation metrics, optimization techniques, and diverse applications ranging from image segmentation to bioinformatics.

ClusteringK-MeansPython
0 likes · 31 min read
Mastering K‑Means: Theory, Implementation, and Real‑World Applications
Code Mala Tang
Code Mala Tang
Mar 1, 2025 · Fundamentals

Why Python’s deque Beats Lists for Fast Insertions: A Practical Guide

This article explains why Python lists are slow for head insertions and deletions, introduces the deque data structure from the collections module, compares their time complexities, and shows practical scenarios and code examples where deque provides superior performance and thread‑safety.

Data StructuresListPerformance
0 likes · 7 min read
Why Python’s deque Beats Lists for Fast Insertions: A Practical Guide
Su San Talks Tech
Su San Talks Tech
Feb 20, 2025 · Fundamentals

Master the Longest Palindromic Substring Problem with DP in Java & C++

After a humorous anecdote about job background checks, this article dives into LeetCode's classic Longest Palindromic Substring problem, explains brute‑force, center‑expansion, and dynamic‑programming approaches, and provides complete Java and C++ implementations with detailed DP recurrence and traversal strategies.

algorithmdynamic programmingpalindrome
0 likes · 8 min read
Master the Longest Palindromic Substring Problem with DP in Java & C++
Java Architecture Stack
Java Architecture Stack
Feb 19, 2025 · Fundamentals

Master Python Linked List: Reverse and Merge Techniques Explained

This article explains practical Python implementations for reversing a linked list using iterative and recursive approaches, merging two or multiple sorted linked lists, handling edge cases such as empty inputs, and includes complete code samples with complexity analysis for each method.

Data StructuresPythonalgorithm
0 likes · 12 min read
Master Python Linked List: Reverse and Merge Techniques Explained