ended3월 20일· 6 sources
Valid Anagram
유효한 애너그램 판별
Why it matters
The post describes a solution for checking whether two strings are anagrams by comparing character frequencies using a dictionary. It first validates equal length, then counts characters in the first string and decrements counts while iterating the second string, returning False on any mismatch.
6
Sources
+0
24h
—
Growth
185d
Active
anagramanagramscharacter countingcharacter frequencyfrequency arrayfrequency countfrequency countinghash maphashmapleetcodepythonsortingstring comparisonstring matching