Posts
All the articles I've posted.
-
LeetCode 901 Online Stock Span
Solutions for LeetCode 901, medium, tags: stack, design, monotonic stack, data stream.
-
System Design - How Apache ZooKeeper Works
How Apache ZooKeeper works: the coordination service behind Kafka, Hadoop, and HBase. Covers ZAB consensus protocol, znodes, watches, ephemeral nodes, leader election, sessions, and a source code walkthrough from the apache/zookeeper repository.
-
LeetCode 437 Path Sum III
Solutions for LeetCode 437, medium, tags: tree, depth-first search, binary tree, prefix sum, hash table.
-
LeetCode 310 Minimum Height Trees
Solutions for LeetCode 310, medium, tags: graph, topological sort, BFS.
-
AI/ML - How BPE Tokenization Works in Large Language Models
How Byte Pair Encoding (BPE) tokenization works in large language models: the training algorithm, encoding and decoding, tiktoken and sentencepiece implementations, vocabulary construction, and why subword tokenization strikes the right balance between characters and words.
-
LeetCode 543 Diameter of Binary Tree
Solutions for LeetCode 543, easy, tags: tree, depth-first search, binary tree.