...

/

Solution Review: Problem Challenge 2

Solution Review: Problem Challenge 2

String Anagrams (hard)

Given a string and a pattern, find all anagrams of the pattern in the given string.

Every anagram is a permutation of a string. As we know, when we are not allowed to repeat characters while finding permutations of a string, we get N!N! permutations (or anagrams) of a string having NN ...