242. Valid Anagram
count the occurrences of each character in both strings and then compare the counts.
Read more ⟶
409. Longest Palindrome
the potential length of the palindrome is len(s) - odds_cnt + bool(odds_cnt)
Read more ⟶
438. Find All Anagrams in a String
sliding window - decrement the count of the character that is left behind i - len(p)
Read more ⟶
49. Group Anagrams
for each string in the given array, sort its characters and use the sorted string as a key to the hashmap
Read more ⟶