Blog
In-depth articles on AI agents, LLM engineering, servers, Python and software development.
The core of the divide-and-conquer algorithm is "divide and conquer," which solves complex problems through three steps: divide (split into smaller subproblems), conquer (recursively solve subproblems
This article explains the concept of recursion using everyday examples and classic cases. Recursion is a method that breaks down a large problem into smaller, similar subproblems until the subproblems
The article introduces two basic search algorithms: sequential search and binary search, which are used to locate specific elements in data. Sequential search (linear search) works by comparing eleme
Bubble Sort is one of the simplest sorting algorithms in computer science. Its core idea is to repeatedly compare adjacent elements and swap their positions, allowing larger elements to gradually "bub
A hash table is a key-value storage structure that maps keys to array bucket positions through a hash function, enabling O(1) efficient lookup, insertion, and deletion. Its underlying structure is an
This article introduces three classic traversal methods of binary trees (pre-order, in-order, and post-order), implemented recursively, with the core being clarifying the position of root node access.
This article uses a life analogy to explain the "tree" in data structures. The core is that a tree is similar to a tree in life: it has a root node (starting point), child/parent nodes (branches and t
A queue is a data structure that follows the "First-In-First-Out" (FIFO) principle. It only allows insertion at the rear and deletion at the front. Key concepts include the front (earliest element) an
This article uses "stacking plates" as an example to explain the core concepts of the data structure "stack". A stack is a linear list where insertions and deletions can only be performed from one end
This article uses the example of storing a list of game players to illustrate how linked lists solve the problem of node movement required when deleting intermediate elements from an array. A linked l