Writing on software design, company building, and the aerospace industry.

All of my long-form thoughts on programming, leadership, product design, and more, collected in chronological order.

Minimum Number of Swaps to Arrange Couples

Learn how to solve the minimum number of swaps problem to arrange couples side by side efficiently using a greedy algorithm in TypeScript with linear time complexity.

Tower of Hanoi Algorithm Solution in TypeScript

Learn how to solve the Tower of Hanoi puzzle in TypeScript. This guide provides a step-by-step solution using recursion for the classic problem.