Posts
All the articles I've posted.
-
LeetCode 189 Rotate Array
Solutions for LeetCode 189, medium, tags: array, math, two pointers.
-
LeetCode 1202 Smallest String With Swaps
Solutions for LeetCode 1202, medium, tags: array, hash table, string, depth-first search, breadth-first search, union find, sorting.
-
AI/ML - How Reinforcement Learning from Human Feedback (RLHF) Works
How RLHF works end to end: supervised fine-tuning, reward model training, PPO optimization, and the math behind aligning large language models with human preferences.
-
System Design - How Debuggers Work
How debuggers like GDB and LLDB work under the hood: ptrace system call, INT3 software breakpoints, hardware watchpoints, single-stepping, DWARF debug info, and source code walkthrough from the GDB and Linux kernel.
-
LeetCode 395 Longest Substring with At Least K Repeating Characters
Solutions for LeetCode 395, medium, tags: hash table, string, divide and conquer, sliding window.
-
LeetCode 241 Different Ways to Add Parentheses
Solutions for LeetCode 241, medium, tags: math, dynamic programming, string, recursion, memoization.