Tagged articles

Algorithm

648 articles · Page 2 of 7
php Courses
php Courses
Jan 15, 2025 · Backend Development

Detecting Duplicate Elements in an Array with PHP

This article explains how to determine whether an integer array contains duplicate values by iterating through the elements, using a PHP associative array for constant‑time lookups, and provides the full solution code along with its execution flow, time and space complexity analysis.

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

AlgorithmRecursionbackend
0 likes · 10 min read
Recursive Order Merging Algorithm for JD Logistics Inbound Service
Java Architect Essentials
Java Architect Essentials
Dec 24, 2024 · Information Security

Techniques for Performing Fuzzy Queries on Encrypted Data

This article examines the challenges of fuzzy searching encrypted data and presents three categories of solutions—naïve in‑memory decryption, conventional database‑level approaches, and advanced algorithmic methods—evaluating their implementation steps, security implications, and performance trade‑offs.

AlgorithmFuzzy Searchencryption
0 likes · 11 min read
Techniques for Performing Fuzzy Queries on Encrypted Data
macrozheng
macrozheng
Dec 16, 2024 · Backend Development

Boost Java Loop Performance: Replace Nested Loops with a HashMap

This article demonstrates how to dramatically speed up Java code that matches items between two large lists by eliminating nested loops, using early‑exit with break and, more effectively, pre‑building a HashMap for O(1) lookups, with concrete timing results and full code examples.

AlgorithmHashMapbackend development
0 likes · 8 min read
Boost Java Loop Performance: Replace Nested Loops with a HashMap
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.

AlgorithmC++LeetCode
0 likes · 6 min read
LeetCode 814: Binary Tree Pruning
Tencent Cloud Developer
Tencent Cloud Developer
Dec 12, 2024 · Backend Development

Common Rate Limiting Algorithms: Fixed Window, Sliding Window, Sliding Log, Leaky Bucket, and Token Bucket

The article examines five common rate‑limiting algorithms—Fixed Window, Sliding Window, Sliding Log, Leaky Bucket, and Token Bucket—detailing their principles, pros and cons, and providing complete C++ implementations to help developers choose the best approach for controlling traffic bursts and ensuring system stability.

AlgorithmC++backend
0 likes · 14 min read
Common Rate Limiting Algorithms: Fixed Window, Sliding Window, Sliding Log, Leaky Bucket, and Token Bucket
Python Crawling & Data Mining
Python Crawling & Data Mining
Dec 11, 2024 · Fundamentals

Master the ‘Sum of Numbers Ignoring 6‑9 Sections’ Challenge in Python

This article walks through a Python list‑processing problem that requires summing numbers while skipping any segment that starts with a 6 and ends with the next 9, presenting multiple solution approaches—including index tricks, flag control, while loops, and recursion—to help readers understand and implement the algorithm effectively.

AlgorithmPythonRecursion
0 likes · 7 min read
Master the ‘Sum of Numbers Ignoring 6‑9 Sections’ Challenge in Python
Java Tech Enthusiast
Java Tech Enthusiast
Dec 7, 2024 · Interview Experience

Solve LeetCode 739 ‘Daily Temperatures’ Using a Monotonic Stack

This article explains the LeetCode 739 'Daily Temperatures' problem, describing how to compute the next warmer day for each temperature using a monotonic stack, and provides complete implementations in Java, C++, and Python, along with step‑by‑step analysis and example walkthroughs.

AlgorithmC++Daily Temperatures
0 likes · 6 min read
Solve LeetCode 739 ‘Daily Temperatures’ Using a Monotonic Stack
Lobster Programming
Lobster Programming
Nov 28, 2024 · Fundamentals

How Paxos Guarantees Strong Consistency in Distributed Systems

This article explains the Paxos consensus algorithm, detailing its roles (proposer, acceptor, learner), the two-phase prepare and accept process, handling of proposal numbers, and how it ensures strong consistency across distributed nodes through examples and diagrams.

AlgorithmPaxosdistributed consensus
0 likes · 9 min read
How Paxos Guarantees Strong Consistency in Distributed Systems
Java Tech Enthusiast
Java Tech Enthusiast
Nov 19, 2024 · Fundamentals

Computational Equivalence and Turing Completeness

Given unlimited time and memory, any computing device—from supercomputers to smartphones—can execute the same set of tasks, differing only in speed and resources, because a system that can simulate a Turing machine is Turing‑equivalent, making all Turing‑complete languages capable of solving any computable problem, with only efficiency or code length varying.

AlgorithmComputational theoryTuring Completeness
0 likes · 4 min read
Computational Equivalence and Turing Completeness
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.

AlgorithmGotoRecursion
0 likes · 7 min read
Simulating Recursion in PHP Using Stacks, Loops, and Goto
JD Tech Talk
JD Tech Talk
Nov 7, 2024 · Databases

Understanding Bloom Filters and Cuckoo Filters

This article explains Bloom filters and Cuckoo filters, covering their principles, implementations, and practical applications in database optimization.

AlgorithmBloom filterCuckoo Filter
0 likes · 12 min read
Understanding Bloom Filters and Cuckoo Filters
DevOps
DevOps
Oct 31, 2024 · Backend Development

Improving Backend Engineer Skills: Abstract Problem Solving and Code Abstractions

This article explores the core competencies of backend engineers, emphasizing accurate problem abstraction, discusses Go's ServerCodec and I/O interfaces, demonstrates algorithmic solutions to the Word Search II problem, and offers practical advice on improving coding skills through studying language features, system design, and effective learning habits.

AlgorithmSoftware Engineeringabstraction
0 likes · 19 min read
Improving Backend Engineer Skills: Abstract Problem Solving and Code Abstractions
Programmer DD
Programmer DD
Oct 30, 2024 · Fundamentals

How Raft Elects a Leader and Replicates Logs: Step-by-Step Walkthrough

This article explains the Raft consensus algorithm's leader election, log replication, and log alignment processes using a three‑node cluster example, detailing heartbeat timeouts, RequestVote handling, AppendEntries messaging, and the iterative steps required to keep followers consistent with the leader.

AlgorithmLeader ElectionLog Replication
0 likes · 9 min read
How Raft Elects a Leader and Replicates Logs: Step-by-Step Walkthrough
YiSu Grain
YiSu Grain
Oct 29, 2024 · Fundamentals

Why This Design Works and How a Fenwick Tree Simplifies Inversion Counting

The article explains what inversion pairs are, demonstrates a naïve O(n²) counting method, then introduces a smarter right‑to‑left approach using a Fenwick (Binary Indexed) tree with discretization to achieve efficient O(n log n) inversion counting, providing full Python implementations and step‑by‑step examples.

AlgorithmBinary Indexed TreeFenwick tree
0 likes · 7 min read
Why This Design Works and How a Fenwick Tree Simplifies Inversion Counting
DaTaobao Tech
DaTaobao Tech
Oct 28, 2024 · Fundamentals

Garbage Collection Algorithms and Reference Counting in QuickJS

QuickJS manages memory using reference counting for each object combined with a cycle‑collector that periodically scans roots, decrements child references, and frees objects whose counts drop to zero, while also supporting traditional reachability‑based garbage‑collection techniques such as mark‑sweep, copying, and generational collection.

AlgorithmC++Garbage Collection
0 likes · 9 min read
Garbage Collection Algorithms and Reference Counting in QuickJS
YiSu Grain
YiSu Grain
Oct 23, 2024 · Fundamentals

Understanding Fenwick Tree: A Step‑by‑Step Guide

This article explains how a Fenwick (Binary Indexed) Tree stores prefix sums using binary representations and the least‑significant‑bit trick, shows concrete examples for computing sums of sub‑arrays, and provides a full Python implementation with update and query operations.

AlgorithmBinary Indexed TreeData Structure
0 likes · 9 min read
Understanding Fenwick Tree: A Step‑by‑Step Guide
YiSu Grain
YiSu Grain
Oct 16, 2024 · Fundamentals

Understanding BFS Without Any Coding Experience

This article explains the breadth‑first search algorithm step by step, modeling a 0/1 grid as a graph, showing how a queue and a visited set work, and providing a complete Python implementation that finds the shortest path in a maze.

AlgorithmBFSBreadth-First Search
0 likes · 12 min read
Understanding BFS Without Any Coding Experience
Zhuanzhuan Tech
Zhuanzhuan Tech
Sep 26, 2024 · Artificial Intelligence

Pricing Strategy and Model Evolution for Second‑Hand Phone Auctions in ZhaiZhai TOB Marketplace

This article examines the characteristics of ZhaiZhai's B2B auction scenario, defines core pricing metrics, presents a step‑by‑step methodology for determining optimal starting prices, reviews early practices and their shortcomings, and details the current modular machine‑learning model architecture that improves transaction rates and reduces price premiums for second‑hand smartphones.

AlgorithmOperationsPrice Optimization
0 likes · 29 min read
Pricing Strategy and Model Evolution for Second‑Hand Phone Auctions in ZhaiZhai TOB Marketplace
Ops Development & AI Practice
Ops Development & AI Practice
Sep 13, 2024 · Fundamentals

How to Find Top‑K Frequent Elements in O(n) Time Using Bucket Sort

This article explains how to efficiently find the k most frequent elements in an integer array using a bucket‑sort based algorithm that runs in linear O(n) time, detailing problem constraints, conventional O(n log n) approaches, the optimized method, Go implementation, complexity analysis, and test results.

Algorithmbucket sorttime-complexity
0 likes · 7 min read
How to Find Top‑K Frequent Elements in O(n) Time Using Bucket Sort
Java Tech Enthusiast
Java Tech Enthusiast
Sep 12, 2024 · Backend Development

Rate Limiting Algorithms and Implementations in Java Microservices

The article explains service rate limiting and demonstrates six Java implementations—Fixed Window, Sliding Window, Leaky Bucket, Token Bucket, Sentinel middleware, and Spring Cloud Gateway—detailing their algorithms, code examples, and configuration to protect microservices from overload.

AlgorithmGatewayMicroservices
0 likes · 20 min read
Rate Limiting Algorithms and Implementations in Java Microservices
Tencent Cloud Developer
Tencent Cloud Developer
Sep 3, 2024 · Backend Development

Rate Limiting: Purpose, Algorithms, Implementation Methods, Strategies, and Considerations

Rate limiting safeguards system stability by capping request rates, employing algorithms such as fixed‑window, sliding‑window, leaky‑bucket, and token‑bucket, and can be applied at application, proxy, or hardware layers while using strategies like threshold setting, request classification, feedback, and ensuring fairness, flexibility, and transparency.

Algorithmbackenddistributed systems
0 likes · 28 min read
Rate Limiting: Purpose, Algorithms, Implementation Methods, Strategies, and Considerations
Huolala Tech
Huolala Tech
Aug 15, 2024 · Operations

How to Build an Automated Log‑Clustering Engine for Exception Monitoring

This article explains why monitoring abnormal code branches is crucial, outlines the challenges of log analysis, proposes a log‑clustering engine with spell and DBSCAN algorithms, describes its architecture, workflow, and implementation details, and highlights the benefits for system stability and operational efficiency.

AlgorithmLog ClusteringLog Monitoring
0 likes · 15 min read
How to Build an Automated Log‑Clustering Engine for Exception Monitoring
php Courses
php Courses
Aug 8, 2024 · Backend Development

Fast Multiplication of Large Integers Using PHP GMP Library

This article explains how to perform efficient large‑integer multiplication in PHP by leveraging the GMP (GNU Multiple Precision) library, describes the underlying fast multiplication algorithm, and provides a complete PHP code example implementing the method.

AlgorithmGMPbig integers
0 likes · 4 min read
Fast Multiplication of Large Integers Using PHP GMP Library
IT Architects Alliance
IT Architects Alliance
Aug 4, 2024 · Information Security

How to Perform Fuzzy Search on Encrypted Data

This article examines the challenges of fuzzy searching encrypted data and compares three implementation approaches—naïve, conventional, and advanced—detailing their principles, performance implications, storage costs, and security trade‑offs, ultimately recommending the conventional token‑based method for most practical applications.

AlgorithmDatabaseFuzzy Search
0 likes · 13 min read
How to Perform Fuzzy Search on Encrypted Data
Selected Java Interview Questions
Selected Java Interview Questions
Jul 29, 2024 · Fundamentals

Comprehensive Guide to TreeUtil: Building, Traversing, Flattening, and Sorting Tree Structures in Java

This article introduces a versatile Java TreeUtil class that demonstrates how to construct hierarchical tree structures from flat lists, perform pre-order, level-order, and post-order traversals, flatten trees back to lists, and sort nodes using generic functional interfaces, with detailed code examples.

AlgorithmDataStructureUtility
0 likes · 16 min read
Comprehensive Guide to TreeUtil: Building, Traversing, Flattening, and Sorting Tree Structures in Java
Java Captain
Java Captain
Jul 29, 2024 · Information Security

How to Perform Fuzzy Queries on Encrypted Data

This article examines the challenges of fuzzy searching encrypted data and compares three categories of solutions—naïve, conventional, and advanced—detailing their implementation ideas, performance trade‑offs, storage costs, and security implications for real‑world applications.

AlgorithmFuzzy SearchQuery Optimization
0 likes · 10 min read
How to Perform Fuzzy Queries on Encrypted Data
Liangxu Linux
Liangxu Linux
Jul 27, 2024 · Fundamentals

Master Linked Lists in C: From Arrays to Circular Lists

This article explains the differences between array‑based sequential storage and pointer‑based linked storage, introduces singly, doubly and circular linked lists, and provides complete C implementations for creation, insertion, deletion, and traversal with clear diagrams and step‑by‑step code examples.

AlgorithmArrayC++
0 likes · 25 min read
Master Linked Lists in C: From Arrays to Circular Lists
DataFunSummit
DataFunSummit
Jul 13, 2024 · Artificial Intelligence

Causal Inference Knowledge Map: Framework, Application Evaluation, Typical Algorithms, Implementation Challenges, and JD Tech Credit Decision Model

This article presents a comprehensive knowledge map of causal inference covering its overall framework, how to evaluate decision‑making scenarios, typical causal algorithms, practical challenges in deployment, a JD Tech credit‑limit case study, and future research directions.

AlgorithmDecision Modelingdata science
0 likes · 15 min read
Causal Inference Knowledge Map: Framework, Application Evaluation, Typical Algorithms, Implementation Challenges, and JD Tech Credit Decision Model
MaGe Linux Operations
MaGe Linux Operations
Jul 12, 2024 · Fundamentals

Mastering Recursion: Classic Examples and How They Simplify Complex Problems

Recursion, a programming technique where a function calls itself, can elegantly solve problems like factorials, Fibonacci sequences, and binary search, and this article explains its definition, key concepts, characteristics, and provides clear Python examples to deepen understanding of this fundamental algorithmic approach.

AlgorithmProgramming FundamentalsRecursion
0 likes · 8 min read
Mastering Recursion: Classic Examples and How They Simplify Complex Problems
php Courses
php Courses
Jul 12, 2024 · 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 a hash map for constant‑time lookups, and provides a PHP implementation of the containsDuplicate function along with its time and space complexity analysis.

AlgorithmArrayduplicate detection
0 likes · 4 min read
Detecting Duplicate Elements in an Array Using PHP
Alimama Tech
Alimama Tech
Jul 11, 2024 · Artificial Intelligence

Efficient Local Search for Guaranteed Display Advertising Inventory Allocation with Multilinear Constraints

The paper introduces LS‑IMP, a two‑stage local‑search algorithm with four novel operators that efficiently solves guaranteed‑delivery advertising inventory allocation under non‑convex multilinear media‑preference constraints, consistently outperforming commercial solvers and heuristics in solution quality and speed on real‑world datasets.

AlgorithmOnline Advertisinginventory allocation
0 likes · 17 min read
Efficient Local Search for Guaranteed Display Advertising Inventory Allocation with Multilinear Constraints
AI Architecture Hub
AI Architecture Hub
Jun 20, 2024 · Big Data

How GeoHash Powers Efficient Large-Scale Location Queries Without Pagination

This article explains the GeoHash algorithm, shows how it converts latitude‑longitude pairs into compact binary strings, demonstrates the encoding process with a concrete example, and discusses how the resulting prefixes can be used to quickly locate nearby users in massive datasets while highlighting remaining edge‑case challenges.

AlgorithmBig DataLocation Query
0 likes · 7 min read
How GeoHash Powers Efficient Large-Scale Location Queries Without Pagination
Architect
Architect
Jun 18, 2024 · Big Data

How GeoHash Powers Real‑Time Ride‑Hailing: From Theory to Practice

This article explains the GeoHash algorithm, demonstrates how binary subdivision of latitude and longitude yields compact base‑32 strings, and shows how these hashes can efficiently locate nearby ride‑hailing drivers while highlighting precision limitations and edge cases.

AlgorithmBig DataLocation Services
0 likes · 8 min read
How GeoHash Powers Real‑Time Ride‑Hailing: From Theory to Practice
Ops Development & AI Practice
Ops Development & AI Practice
Jun 17, 2024 · Fundamentals

End‑to‑End vs Divide‑and‑Conquer: Which Algorithm Wins in Real‑World Scenarios?

This article compares end‑to‑end and divide‑and‑conquer algorithmic approaches, outlining their definitions, strengths, weaknesses, and ideal use‑cases, and illustrates the differences with concrete examples in image classification and sorting, helping developers choose the most suitable method for performance and reliability.

AlgorithmDivide and ConquerEnd-to-End
0 likes · 7 min read
End‑to‑End vs Divide‑and‑Conquer: Which Algorithm Wins in Real‑World Scenarios?
DevOps
DevOps
Jun 12, 2024 · Backend Development

Analysis and Implementation of Various WeChat Red Packet Distribution Algorithms in PHP

This article examines four common WeChat red packet distribution algorithms—simple random, double‑mean, line‑segment division, and array_rand optimization—explaining their principles, PHP implementations, performance characteristics, and how to verify randomness, providing code samples and comparative analysis for developers.

AlgorithmPHPbackend
0 likes · 13 min read
Analysis and Implementation of Various WeChat Red Packet Distribution Algorithms in PHP
Python Programming Learning Circle
Python Programming Learning Circle
May 29, 2024 · Game Development

Python Implementation of the Zha Jin Hua Card Game

This article demonstrates how to create a Python program that simulates the Chinese card game Zha Jin Hua, covering deck preparation, player handling, card dealing, hand evaluation, scoring rules, and statistical analysis of game outcomes, with complete source code and example results.

AlgorithmPythonZha Jin Hua
0 likes · 12 min read
Python Implementation of the Zha Jin Hua Card Game
php Courses
php Courses
May 28, 2024 · Backend Development

Fast Multiplication of Large Integers Using PHP GMP Library

This article explains how to use PHP's GMP extension to perform fast multiplication of large integers by applying a divide‑and‑conquer algorithm, reducing the complexity from quadratic to near‑linear, and provides a complete PHP implementation with example code.

AlgorithmGMPPHP
0 likes · 4 min read
Fast Multiplication of Large Integers Using PHP GMP Library
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.

AlgorithmGMPPHP
0 likes · 5 min read
Fast Multiplication of Large Integers Using PHP GMP Library
DaTaobao Tech
DaTaobao Tech
May 13, 2024 · Big Data

Interview Algorithms and System Design: Bloom Filter, TopK, Median, and Concurrency Implementations

The article presents a suite of interview‑style algorithm and system‑design solutions—including Bloom‑filter URL blacklists, hash‑partitioned word frequencies, missing‑number bit arrays, top‑K min‑heap, low‑memory median, short‑URL encoding, Redis user counting, and extensive Java implementations of sorting, singleton, LRU cache, custom thread pools, producer‑consumer models and various FooBar synchronization techniques.

AlgorithmBig DataData Structures
0 likes · 35 min read
Interview Algorithms and System Design: Bloom Filter, TopK, Median, and Concurrency Implementations
Architect
Architect
May 10, 2024 · Backend Development

Rate Limiting Algorithms: Fixed Window, Sliding Window, Leaky Bucket, Token Bucket, and Distributed Rate Limiting

This article explains the importance of rate limiting in microservice architectures, introduces four basic algorithms—fixed window, sliding window, leaky bucket, and token bucket—compares their advantages and disadvantages, and presents both single-machine and distributed implementations with Go code examples.

AlgorithmMicroservicesdistributed systems
0 likes · 29 min read
Rate Limiting Algorithms: Fixed Window, Sliding Window, Leaky Bucket, Token Bucket, and Distributed Rate Limiting
Zhuanzhuan Tech
Zhuanzhuan Tech
May 8, 2024 · Backend Development

Optimizing Coupon Combination Algorithms: From Cartesian Product to Array Indexing

This article explains the rules of platform coupons, demonstrates a concrete example, and details three generations of algorithms—from a Cartesian‑product approach to Map‑based and array‑index methods—highlighting their implementations, performance trade‑offs, and a comparative benchmark.

Algorithmcoupon optimizatione-commerce
0 likes · 10 min read
Optimizing Coupon Combination Algorithms: From Cartesian Product to Array Indexing
Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
May 7, 2024 · Artificial Intelligence

Winning Huawei’s Global Smart Port Challenge: Key Strategies and AI Techniques

The Harbin Institute of Technology team detailed their championship journey in Huawei's 2024 Software Elite Challenge, explaining the competition's smart‑port scenario, their multi‑stage algorithmic approach for robot and ship decision‑making, path‑finding optimizations, large‑model integration, and performance tuning that secured first place.

AIAlgorithmHuawei
0 likes · 18 min read
Winning Huawei’s Global Smart Port Challenge: Key Strategies and AI Techniques
DataFunTalk
DataFunTalk
May 5, 2024 · Artificial Intelligence

Causal Inference Knowledge Map: Framework, Application Evaluation, Typical Algorithms, Practical Challenges, and JD Technology Case Study

This article presents a comprehensive knowledge map of causal inference, covering its overall framework, how to evaluate decision‑making scenarios, typical causal algorithms, real‑world implementation difficulties, a JD Technology credit‑limit case, and future research directions.

Algorithmdecision making
0 likes · 15 min read
Causal Inference Knowledge Map: Framework, Application Evaluation, Typical Algorithms, Practical Challenges, and JD Technology Case Study
Java Tech Enthusiast
Java Tech Enthusiast
May 1, 2024 · Fundamentals

Zigzag Conversion Algorithm (LeetCode 6)

The Zigzag Conversion algorithm rearranges an input string into a Z‑shaped pattern across a specified number of rows, tracks the current row while toggling direction at the top and bottom, stores characters per row, and finally concatenates the rows to produce the transformed string, with reference implementations in C++, Java, and Python.

AlgorithmC++LeetCode
0 likes · 9 min read
Zigzag Conversion Algorithm (LeetCode 6)
Ubiquitous Tech
Ubiquitous Tech
Apr 28, 2024 · Fundamentals

Build a Tree Structure in Java Without Recursion

This article explains how to construct hierarchical tree data in Java without using recursion by adapting the non‑recursive algorithm from the zTree jQuery plugin, detailing the underlying hash‑map approach, providing full Java code, and discussing performance benefits and limitations.

AlgorithmData StructureHashMap
0 likes · 12 min read
Build a Tree Structure in Java Without Recursion
Selected Java Interview Questions
Selected Java Interview Questions
Apr 25, 2024 · Information Security

Techniques for Fuzzy Search on Encrypted Data: Approaches, Trade‑offs, and Practical Implementations

The article examines why encrypted sensitive fields such as passwords, phone numbers, and bank details need special handling, categorises three families of fuzzy‑search solutions for encrypted data, evaluates their security, performance and storage costs, and recommends a balanced conventional method for production use.

AlgorithmDatabaseFuzzy Search
0 likes · 10 min read
Techniques for Fuzzy Search on Encrypted Data: Approaches, Trade‑offs, and Practical Implementations
DaTaobao Tech
DaTaobao Tech
Apr 24, 2024 · Fundamentals

Comprehensive Collection of Algorithm Templates and Code Snippets for LeetCode

This guide compiles essential Python built‑in functions, data‑structure utilities, and ready‑to‑use algorithmic templates—including dynamic programming, backtracking with caching, binary search, bit manipulation, union‑find, topological sort, monotonic stack, sliding window, prefix sums, two‑pointer and graph traversals—to accelerate LeetCode problem solving.

AlgorithmData StructuresLeetCode
0 likes · 25 min read
Comprehensive Collection of Algorithm Templates and Code Snippets for LeetCode
Architecture Digest
Architecture Digest
Apr 14, 2024 · Backend Development

Optimizing Nested Loops in Java: From O(N²) to O(N) Using HashMap

This article demonstrates how to replace a costly double‑for‑loop that matches two large lists of users with a HashMap lookup, showing performance measurements, the effect of adding a break statement, and detailed Java code examples for backend developers.

AlgorithmHashMapbackend development
0 likes · 7 min read
Optimizing Nested Loops in Java: From O(N²) to O(N) Using HashMap
php Courses
php Courses
Apr 10, 2024 · Backend Development

Using PHP sort() Function to Sort Arrays in Ascending Order

This article explains how to use PHP's built-in sort() function to sort arrays in ascending order, covering syntax, parameters, return values, and practical examples for both string and numeric arrays, including code snippets and output demonstrations.

AlgorithmArrayPHP
0 likes · 3 min read
Using PHP sort() Function to Sort Arrays in Ascending Order
IT Services Circle
IT Services Circle
Apr 5, 2024 · Fundamentals

Huawei OD Interview Algorithm Problem – Basketball Game (Deque Simulation)

The article presents a Huawei OD interview problem where numbered basketballs are inserted into a linear bucket and can be removed from either end, describes the input and output formats, provides a simulation-based solution using double‑ended queues, and includes reference implementations in C++ and Java.

AlgorithmC++Simulation
0 likes · 9 min read
Huawei OD Interview Algorithm Problem – Basketball Game (Deque Simulation)
Python Programming Learning Circle
Python Programming Learning Circle
Mar 25, 2024 · Game Development

Implementing Automatic Missile Tracking in Python with Pygame

This article explains the mathematics and step‑by‑step Python pygame implementation of an automatic missile‑tracking algorithm for shooting games, covering time‑slice calculations, trigonometric direction computation, and image rotation handling to keep the missile tip aligned with the target.

AlgorithmGame DevelopmentMissile Tracking
0 likes · 8 min read
Implementing Automatic Missile Tracking in Python with Pygame
php Courses
php Courses
Mar 12, 2024 · Fundamentals

Fast Multiplication of Large Integers Using PHP GMP Library

This article explains how to perform fast multiplication of large integers in PHP by leveraging the GNU Multiple Precision (GMP) library, introduces the underlying fast multiplication algorithm that reduces complexity from O(n²) to O(n log n), and provides a complete PHP code example implementing the method.

AlgorithmPHPbig integer
0 likes · 5 min read
Fast Multiplication of Large Integers Using PHP GMP Library
Sanyou's Java Diary
Sanyou's Java Diary
Mar 7, 2024 · Backend Development

Mastering Rate Limiting: Algorithms, Pros, Cons, and Distributed Solutions

This article explores why rate limiting is essential for high‑concurrency services, introduces four core algorithms with Go implementations, compares their strengths and weaknesses, and presents practical distributed limiting strategies using Redis, load balancers, and coordination services.

AlgorithmMicroservicesgolang
0 likes · 30 min read
Mastering Rate Limiting: Algorithms, Pros, Cons, and Distributed Solutions
Alimama Tech
Alimama Tech
Mar 6, 2024 · Artificial Intelligence

Risk-Constrained Budget Pacing for Guaranteed Display Advertising

The paper introduces a percentile‑based risk‑constrained budget‑pacing algorithm for guaranteed‑delivery display ads that ties the pacing rate to the dual‑bidding factor’s percentile, preserving volume guarantees while preventing rapid spend bursts, using adaptive transforms, gradient clipping and stop‑loss controls, and demonstrates smoother spend and performance gains in large‑scale A/B tests.

AlgorithmBudget PacingOnline Optimization
0 likes · 16 min read
Risk-Constrained Budget Pacing for Guaranteed Display Advertising
Architect Chen
Architect Chen
Mar 1, 2024 · Backend Development

Mastering the Snowflake Algorithm: Generate Distributed Unique IDs in Java

This article explains the Snowflake algorithm's principles, features, and Java implementation for generating high‑performance, ordered, and globally unique IDs in distributed systems, while highlighting key considerations such as node ID allocation and clock synchronization.

Algorithmdistributed IDsnowflake
0 likes · 7 min read
Mastering the Snowflake Algorithm: Generate Distributed Unique IDs in Java
Sohu Tech Products
Sohu Tech Products
Feb 28, 2024 · Big Data

How SimHash and Cosine Similarity Accelerate Large‑Scale Text Deduplication

This article explains why massive news feeds need efficient deduplication, compares cosine similarity and SimHash for measuring text similarity, walks through a step‑by‑step implementation with Java code, and shows how a space‑for‑time indexing strategy can reduce duplicate‑detection complexity from O(n²) to near O(1).

AlgorithmBig DataNear-Duplicate Detection
0 likes · 14 min read
How SimHash and Cosine Similarity Accelerate Large‑Scale Text Deduplication
Tencent Cloud Developer
Tencent Cloud Developer
Feb 28, 2024 · Backend Development

Comprehensive Guide to Rate Limiting Algorithms and Distributed Rate Limiting Solutions

This guide explains why rate limiting is essential for micro‑service stability, outlines six design principles, details four classic algorithms—fixed window, sliding window, leaky bucket, and token bucket—and compares centralized Redis, load‑balancer cache, and coordination‑service distributed solutions.

AlgorithmMicroservicesdistributed systems
0 likes · 30 min read
Comprehensive Guide to Rate Limiting Algorithms and Distributed Rate Limiting Solutions
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 21, 2024 · Backend Development

Recreating the Spring Festival Gala Magic Trick Using Go

This article walks through a step‑by‑step Go implementation of the popular Spring Festival Gala magic trick, explaining the underlying Josephus‑style algorithm, showing each transformation of a slice of cards with complete code snippets, and demonstrating how the final single card matches the hidden one.

AlgorithmGoJosephus problem
0 likes · 9 min read
Recreating the Spring Festival Gala Magic Trick Using Go
IT Services Circle
IT Services Circle
Feb 20, 2024 · Fundamentals

LeetCode 392: Determine if a String is a Subsequence Using the Two‑Pointer Technique

This article humorously references recent layoff memes before presenting a detailed tutorial on solving LeetCode problem 392—checking whether string s is a subsequence of t—using a two‑pointer algorithm, complete with step‑by‑step explanation, complexity analysis, visual illustrations, and reference implementations in C++, Java, and Python.

AlgorithmC++LeetCode
0 likes · 8 min read
LeetCode 392: Determine if a String is a Subsequence Using the Two‑Pointer Technique
IT Services Circle
IT Services Circle
Feb 14, 2024 · Fundamentals

Linked List Fundamentals: Memory Representation and Comparison with Arrays

This article explains the fundamental concepts of linked lists, contrasting them with arrays through memory allocation analogies, illustrating how linked lists provide dynamic, non‑contiguous storage, their node structure, advantages, disadvantages, and practical implementation considerations across programming languages.

AlgorithmArraysLinked List
0 likes · 7 min read
Linked List Fundamentals: Memory Representation and Comparison with Arrays
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 13, 2024 · Fundamentals

Exploring Diff Algorithms: Edit Distance, Longest Common Subsequence, and Myers Algorithm with TypeScript Implementations

This article examines the principles behind diff tools by implementing three approaches—Levenshtein edit distance, longest common subsequence, and the Myers algorithm—in TypeScript, detailing dynamic-programming solutions, back-tracing techniques, and visualizations to illustrate how strings can be transformed efficiently.

AlgorithmTypeScriptdiff
0 likes · 19 min read
Exploring Diff Algorithms: Edit Distance, Longest Common Subsequence, and Myers Algorithm with TypeScript Implementations
High Availability Architecture
High Availability Architecture
Jan 17, 2024 · Backend Development

Rate Limiting Algorithms: Fixed Window, Sliding Window, Leaky Bucket, and Token Bucket – Principles, Java Implementations, Pros & Cons

This article explains why rate limiting is essential for high‑concurrency systems, defines rate limiting, introduces four common algorithms (fixed‑window, sliding‑window, leaky‑bucket, token‑bucket), provides Java code examples for each, compares their advantages and disadvantages, and shows practical usage with Guava's RateLimiter and AOP annotations.

AOPAlgorithmbackend
0 likes · 17 min read
Rate Limiting Algorithms: Fixed Window, Sliding Window, Leaky Bucket, and Token Bucket – Principles, Java Implementations, Pros & Cons
JD Cloud Developers
JD Cloud Developers
Jan 11, 2024 · Fundamentals

Why Red-Black Trees Beat AVL: Insertion, Deletion, and Java TreeMap

This article explores the classic implementation of red‑black trees, comparing them with AVL trees, detailing their 2‑3‑4 tree correspondence, and walking through Java TreeMap insertion and deletion algorithms, including node definitions, rotation cases, and rebalancing procedures, while analyzing their time complexities.

AVL treeAlgorithmData Structures
0 likes · 20 min read
Why Red-Black Trees Beat AVL: Insertion, Deletion, and Java TreeMap
Amap Tech
Amap Tech
Dec 28, 2023 · Backend Development

Rate Limiting Algorithms and Their Java Implementations

Rate limiting protects system stability by capping request rates, and this article explains five Java algorithms—Fixed Window, Sliding Window, Leaky Bucket, Token Bucket, and Guava's RateLimiter—showing their principles, pros and cons, and providing sample implementations and a Spring @Limit annotation for practical enforcement.

AlgorithmGuavadistributed systems
0 likes · 17 min read
Rate Limiting Algorithms and Their Java Implementations
政采云技术
政采云技术
Dec 28, 2023 · Fundamentals

Queue and Stack Concepts, Implementations, and Applications in Java

This article explains the definitions, characteristics, and overflow cases of sequential and circular queues and stacks, provides Java implementations for these data structures, demonstrates their usage with sample code and results, and discusses practical applications of queue thinking in database-driven workflows.

AlgorithmQueuecircular queue
0 likes · 13 min read
Queue and Stack Concepts, Implementations, and Applications in Java
Alibaba Cloud Developer
Alibaba Cloud Developer
Dec 21, 2023 · Backend Development

Mastering Rate Limiting: Algorithms, Java Implementations, and Guava Tips

This article explains why rate limiting is essential for high‑traffic systems, defines common rate‑limiting algorithms (fixed window, sliding window, leaky bucket, token bucket), provides complete Java code examples for each, and demonstrates practical usage with Guava's RateLimiter in real‑world applications.

AlgorithmGuavabackend
0 likes · 19 min read
Mastering Rate Limiting: Algorithms, Java Implementations, and Guava Tips
Nullbody Notes
Nullbody Notes
Nov 26, 2023 · Fundamentals

Binary Tree Right Side View Using Level‑Order Traversal in Go

The article explains how to obtain the rightmost node values at each depth of a binary tree by performing a level‑order (BFS) traversal, and provides a complete Go implementation that records the last node of every level as the right‑side view.

AlgorithmBFSGo
0 likes · 4 min read
Binary Tree Right Side View Using Level‑Order Traversal in Go
Python Programming Learning Circle
Python Programming Learning Circle
Nov 24, 2023 · Game Development

Implementing the Chinese Card Game “Zha Jin Hua” (Three‑Card Poker) with Python

This article explains the rules of the popular Chinese card game Zha Jin Hua, demonstrates how to generate a standard deck, deal cards to multiple players, evaluate hand types, calculate scores with multipliers, run large‑scale simulations for frequency analysis, and provides the complete Python source code for the entire workflow.

AlgorithmGame DevelopmentScore Calculation
0 likes · 12 min read
Implementing the Chinese Card Game “Zha Jin Hua” (Three‑Card Poker) with Python
Nullbody Notes
Nullbody Notes
Nov 24, 2023 · Fundamentals

How to Solve the Coin Change Problem Using Dynamic Programming

This article explains the classic coin change problem, models it as a minimum‑coin DP task, derives the recurrence relation, shows how to initialize the DP array with a large sentinel value, and provides a complete Go implementation that returns the optimal count or -1 when impossible.

AlgorithmDP recurrenceGo
0 likes · 5 min read
How to Solve the Coin Change Problem Using Dynamic Programming
Nullbody Notes
Nullbody Notes
Nov 23, 2023 · Fundamentals

How to Merge Overlapping Intervals in Go

This article explains how to merge overlapping intervals in Go by first sorting them by their start points and then iteratively combining adjacent intervals, with a complete code example and step‑by‑step reasoning.

AlgorithmGointervals
0 likes · 3 min read
How to Merge Overlapping Intervals in Go
Nullbody Notes
Nullbody Notes
Nov 22, 2023 · Fundamentals

How to Compare Version Numbers in Go – Interview Solution

This article explains the key steps for comparing dot‑separated version strings—ignoring leading zeros, handling different lengths, and performing left‑to‑right numeric comparison—accompanied by a complete Go implementation.

AlgorithmGostring parsing
0 likes · 3 min read
How to Compare Version Numbers in Go – Interview Solution
Nullbody Notes
Nullbody Notes
Nov 20, 2023 · Fundamentals

Counting Valid Triangles: Why Reverse Traversal Matters

The article explains how to count the number of valid triangles that can be formed from an integer array by first sorting the array and then using a reverse‑order two‑pointer technique, detailing each step and providing a complete Go implementation.

AlgorithmTwo-pointersorting
0 likes · 3 min read
Counting Valid Triangles: Why Reverse Traversal Matters