← All resources

Engineering resources

Data structures & algorithms

Understand the approach, not just the answer. Practical explanations, worked examples, and honest trade-offs.

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.