Posts
All the articles I've posted.
-
System Design - How Raft Consensus Works
How the Raft consensus algorithm works: leader election, log replication, safety guarantees, membership changes, and a source code walkthrough from etcd's raft library.
-
LeetCode 102 Binary Tree Level Order Traversal
Solutions for LeetCode 102, medium, tags: tree, breadth-first search, depth-first search, binary tree.
-
LeetCode 402 Remove K Digits
Solutions for LeetCode 402, medium, tags: string, stack, monotonic stack, greedy.
-
LeetCode 684 Redundant Connection
Solutions for LeetCode 684, medium, tags: tree, union find, graph, depth-first search.
-
LeetCode 525 Contiguous Array
Solutions for LeetCode 525, medium, tags: array, hash table, prefix sum.
-
System Design - How Lock-Free Data Structures Work
How lock-free data structures work: CAS operations, memory ordering, the ABA problem, lock-free stacks and queues, and source code walkthrough from the Linux kernel and Java's java.util.concurrent.