Raft Stage27 March 2026·Updated: 9 March 2026·4 minsLast time, we finished the first stage of Raft, sucessfully electing a leader without logs. In stage 2, which is the most difficult stage I think, we …
The Number of Good Subsets20 February 2026·4 minsLink Problem #You are given an integer array nums. We call a subset of nums good if its product can be represented as a product of one or more …
Raft Stage114 February 2026·Updated: 20 February 2026·4 minsRaft #This time we are following the Raft paper and implementing the first stage of Raft, which is leader election. We will implement the leader …
Merge Two Binary Tree14 February 2026·2 minsLink Merge Two Binary Trees Problem #You are given two binary trees root1 and root2. Imagine that when you put one of them to cover the other, some …
Stone Game13 February 2026·2 minsLink: Stone Game Problem #Alice and Bob play a game with piles of stones. There are an even number of piles arranged in a row, and each pile has a …
Usage of Entry Level GPU12 February 2026·2 minsOur chat system collapsed under 20 concurrent requests Currently, I’m working on a RAG(Retrieval Augmented Generation) project, while most of …
Split a String in Balanced Strings12 February 2026·2 minsProblem Link: Split a String in Balanced Strings Problem #Balanced strings are those that have an equal quantity of ‘L’ and …
Stone Game II11 February 2026·Updated: 13 February 2026·2 minsStone Game II #Link: Stone Game II Problem #Alice and Bob continue their games with piles of stones. There are a number of piles arranged in a row, …
How to use Microsoft AI Foundry with Langchain10 February 2026·Updated: 11 February 2026·1 minIn Microsoft’s AI Foundry, it might be a bit tricky to get it work with Langchain at first. What need to be specified is different model …
My First Post9 February 2026·1 minStart using hugo to write down some tehc blogs! I will try my best to keep it 100% human written!