Posts
All the articles I've posted.
-
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.
-
System Design - How the Linux Kernel Network Stack Works
How a packet travels from NIC hardware to your application's socket: interrupts, NAPI, sk_buff, protocol layers, and socket receive queues — a walkthrough of the Linux kernel network stack.
-
LeetCode 127 Word Ladder
Solutions for LeetCode 127, hard, tags: hash table, string, breadth-first search.
-
LeetCode 2131 Longest Palindrome by Concatenating Two Letter Words
Solutions for LeetCode 2131, medium, tags: array, hash table, string, greedy, counting.