Learn the thinking behind the build

Good engineering starts with understanding.

Practical explanations, working examples, and the trade-offs that matter. Learn a concept, then put it to work.

Follow a thread

Learn one idea at a time.

Learning path · 2 lessons

A first look at hashing

Two short lessons on using sets and frequency maps to solve array and string problems.

From the engineering notebook

Explore the articles.

Data structures & algorithms3 min read

Valid Anagram: count what matters

Use a frequency map to compare two strings, and understand when counting is a better fit than sorting. LeetCode 242, explained.

Data structures & algorithms3 min read

Contains Duplicate: hash sets vs sorting

Learn when a set is the right tool, and what you trade away when you sort instead. A worked explanation of LeetCode 217.