A collection of things I've learnt and built. I write about web development, programming, and sometimes random thoughts.
Algorithms
A simple, visual guide to solving the 3Sum problem in O(n^2) time.
A simple, visual guide to solving the 4Sum problem in O(n^2) time.
Learn the Boyer Moore Voting Algorithm with intuition, dry run, and C++ implementation in O(n) time and O(1) space.
Java
A simple guide to Java inbuilt libraries and their usage especially in coding interviews.
Learn Kadane’s Algorithm to find maximum subarray sum in linear time with intuition and dry run.
A simple, visual guide to solving the Longest Consecutive Sequence problem in O(n) time.
A simple, visual guide to solving the Next Permutation problem in O(n) time.
Politics
How wars have historically driven computer advancements.