Blog
Notes on TypeScript, Next.js, SQL, Go, and the craft of building fast, pragmatic web products.
blog posts
Roman Numerals to Integer in JavaScript
Convert Roman numerals like III or IX to integers in JavaScript. A fun logic problem that rewards careful step-by-step thinking.
Solve Palindrome in JavaScript
LeetCode problem 9 solved in one line using JavaScript built-ins. A quick look at toString, split, reverse and why knowing the basics helps.
Solving the Two Sum Problem in JavaScript
My first LeetCode problem started as a naive O(n²) mess and ended with a hash map. A walkthrough of the mistakes and the final O(n) solution.