Sherlock and Anagrams

  • + 1 comment

    any other solutions not brute forcing like this? I did the same way: just iterating through all possible substring pairs and it worked