Count occurrences of anagrams

Jyothi
Jul 24, 2024

--

  • count the number of unique letters and the number of each occurrence of the unique letter in ‘c’
  • Do the same for s, if the number of unique letters and each occurrence match, increment the result.
  • Keep iterating throughout ‘s’ and return the result.

--

--

No responses yet