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.
Learn the thinking behind the build
Practical explanations, working examples, and the trade-offs that matter. Learn a concept, then put it to work.
Follow a thread
Two short lessons on using sets and frequency maps to solve array and string problems.
From the engineering notebook
Use a frequency map to compare two strings, and understand when counting is a better fit than sorting. LeetCode 242, explained.
Learn when a set is the right tool, and what you trade away when you sort instead. A worked explanation of LeetCode 217.