Tagged articles

algorithm

659 articles · Page 2 of 7
Java Tech Enthusiast
Java Tech Enthusiast
Feb 4, 2025 · Fundamentals

LeetCode 31 – Next Permutation: Problem, Analysis, and Code

The Next Permutation problem asks to rearrange an integer array into the immediate lexicographically larger ordering—or the smallest order if none exists—by scanning from the right to find the first decreasing pair, swapping with the next larger element, and reversing the suffix, using O(1) extra space, with implementations provided in Java, C++, and Python.

C++LeetCodePython
0 likes · 7 min read
LeetCode 31 – Next Permutation: Problem, Analysis, and Code
IT Services Circle
IT Services Circle
Feb 1, 2025 · Fundamentals

Understanding Dynamic Programming through Staircase and Knapsack Examples

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

Optimizationalgorithmdynamic programming
0 likes · 12 min read
Understanding Dynamic Programming through Staircase and Knapsack Examples
21CTO
21CTO
Jan 26, 2025 · Artificial Intelligence

How TikTok’s Secret Recommendation Engine Powers Its Global Addiction

The article examines Trump’s executive order on TikTok, the platform’s demand to sell half its equity to a U.S. entity, and delves into the sophisticated AI‑driven recommendation algorithms—highlighting the Monolith real‑time system, online training, and research that explain TikTok’s addictive success.

AIReal-time TrainingTikTok
0 likes · 8 min read
How TikTok’s Secret Recommendation Engine Powers Its Global Addiction
Java Tech Enthusiast
Java Tech Enthusiast
Jan 24, 2025 · Fundamentals

Sum of Two Integers Without Using + or - Operators

The problem asks to add two integers without using '+' or '-', which is solved by repeatedly applying bitwise XOR to obtain the sum without carry and left‑shifted AND to compute the carry until it vanishes, as demonstrated in concise Java and Python implementations with O(1) time and space complexity.

algorithmbitwiseno-plus-minus
0 likes · 4 min read
Sum of Two Integers Without Using + or - Operators
Tencent Cloud Developer
Tencent Cloud Developer
Jan 22, 2025 · Cloud Native

Rate Limiting: Concepts, Algorithms, and Distributed Solutions

Rate limiting protects micro‑service stability by rejecting excess traffic, using algorithms such as fixed‑window, sliding‑window, leaky‑bucket and token‑bucket, and can be deployed locally or distributed via Redis, load‑balancers, or coordination services, each offering different trade‑offs in precision, scalability, and complexity.

Microservicesalgorithmdistributed systems
0 likes · 31 min read
Rate Limiting: Concepts, Algorithms, and Distributed Solutions
Java Tech Enthusiast
Java Tech Enthusiast
Jan 22, 2025 · Fundamentals

LeetCode 31 – Next Permutation: Problem Explanation and Multi‑Language Solutions

LeetCode problem 31, Next Permutation, requires rearranging an integer array in‑place to the lexicographically next greater arrangement by locating the first decreasing pair from the right, swapping it with the smallest larger element, and reversing the suffix, with Java, C++, and Python reference implementations provided.

algorithmarrayin-place
0 likes · 6 min read
LeetCode 31 – Next Permutation: Problem Explanation and Multi‑Language Solutions
Ops Development & AI Practice
Ops Development & AI Practice
Jan 18, 2025 · Fundamentals

How to Find the Unique Number in O(n) Time Using XOR in Go

This article explains how to identify the single non‑repeating integer in a list where every other number appears twice, using an O(n) time and O(1) space XOR‑based algorithm, complete with Go code, step‑by‑step analysis, complexity discussion, and UML activity diagram.

algorithmgolangspace complexity
0 likes · 6 min read
How to Find the Unique Number in O(n) Time Using XOR in Go
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.

PHPalgorithmarray
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.

Backendalgorithmlogistics
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.

algorithmencryptionfuzzy search
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.

Backend DevelopmentHashMapPerformance Optimization
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.

C++LeetCodePython
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.

BackendC++Performance
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.

ListPythonalgorithm
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.

C++Daily TemperaturesLeetCode
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.

Distributed ConsensusPaxosalgorithm
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.

Computational theoryTuring Completenessalgorithm
0 likes · 4 min read
Computational Equivalence and Turing Completeness
Efficient Ops
Efficient Ops
Nov 9, 2024 · Operations

How to Fairly Split 8 Swiss Rolls? Solving the Allocation Puzzle with Linear Programming

This article treats the popular "8 Swiss rolls" dilemma as an optimization problem, explains how to model it with linear programming, and presents several algorithmic strategies—including equal division, remainder handling, priority‑based rules, and load‑balancing analogies—along with example Python code.

Linear ProgrammingOptimizationResource Allocation
0 likes · 6 min read
How to Fairly Split 8 Swiss Rolls? Solving the Allocation Puzzle with Linear Programming
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.

Gotoalgorithmiteration
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.

Bloom FilterCuckoo FilterData Structures
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.

BackendSoftware 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.

Distributed ConsensusLeader 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.

Binary Indexed TreeFenwick treePython
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.

C++JavaScriptMemory Management
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.

Binary Indexed TreeFenwick treePrefix Sum
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.

BFSBreadth-First SearchPathfinding
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.

OperationsPrice Optimizationalgorithm
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.

MicroservicesSentinelSpring Cloud
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.

Backendalgorithmdistributed 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.

Log ClusteringLog Monitoringalgorithm
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.

GMPalgorithmbig 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.

algorithmdatabaseencryption
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.

DataStructureUtilityalgorithm
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.

algorithmencryptionfuzzy search
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.

C++algorithmarray
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.

Data ScienceDecision Modelingalgorithm
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.

Programming Fundamentalsalgorithmexamples
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.

Online Advertisingalgorithminventory 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.

GeoHashLocation QueryOptimization
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.

GeoHashLocation ServicesSpatial Indexing
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.

Divide and ConquerEnd-to-Endalgorithm
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.

BackendPHPPerformance
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.

PythonZha Jin Huaalgorithm
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.

BackendGMPPHP
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.

GMPPHPalgorithm
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.

Data Structuresalgorithmbig data
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.

Microservicesalgorithmdistributed 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.

Performancealgorithmcoupon optimization
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.

AIHuaweiSmart Port
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.

C++LeetCodePython
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.

HashMapNon-RecursiveTree Structure
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.

algorithmdata protectiondatabase
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.

Data StructuresLeetCodealgorithm
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.

Backend DevelopmentHashMapPerformance Optimization
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.

PHPalgorithmarray
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.

C++Simulationalgorithm
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.

Missile TrackingPygamePython
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.

PHPalgorithmbig 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.

Microservicesalgorithmgolang
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.

Budget PacingOnline Optimizationalgorithm
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.

Snowflakealgorithmdistributed-id
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).

Near-Duplicate DetectionSimHashalgorithm
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.

Microservicesalgorithmdistributed 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.

GoJosephus problemMagic Trick
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.

C++LeetCodePython
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.

TypeScriptalgorithmdiff
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.

AOPBackendalgorithm
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 TreeData StructuresJava TreeMap
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.

Guavaalgorithmdistributed systems
0 likes · 17 min read
Rate Limiting Algorithms and Their Java Implementations