Posts
All the articles I've posted.
-
LeetCode 148 Sort List
Solutions for LeetCode 148, medium, tags: linked list, two pointers, divide and conquer, sorting, merge sort.
-
System Design - How Rust's Borrow Checker Works
How Rust's borrow checker enforces memory safety without garbage collection: ownership rules, borrowing, lifetimes, the NLL (Non-Lexical Lifetimes) algorithm, and a source code walkthrough from the rust-lang/rust compiler.
-
System Design - How Memory-Mapped Files (mmap) Work
How memory-mapped files (mmap) work: virtual memory mapping, page faults, kernel page cache interaction, copy-on-write semantics, and why databases love and hate them.
-
LeetCode 399 Evaluate Division
Solutions for LeetCode 399, medium, tags: array, string, depth-first search, breadth-first search, union find, graph, shortest path.
-
LeetCode 373 Find K Pairs with Smallest Sums
Solutions for LeetCode 373, medium, tags: array, heap.
-
System Design - How Futexes Work (The Foundation of Every Lock You Use)
How Linux futexes work: the hybrid userspace/kernel synchronization primitive that powers every mutex, condition variable, and semaphore in modern programs. Covers the fast-path CAS, slow-path syscall, kernel hash table, the three-state mutex optimization, and a source code walkthrough from the Linux kernel and glibc.