* a fixed-size array of 26 integers to count frequencies. * Approach: * 1. If lengths differ, they cannot be anagrams. * 2. Count each character in string 's'. * 3. Subtract counts using characters ...
//This is a freq array where we increase count and decrease count and if array dooesnt have 0 it is not a valid anagram.