diff --git a/Algorithms/Strings/Permutations.cs b/Algorithms/Strings/Permutations.cs index fe15d8a9..80f54c0c 100644 --- a/Algorithms/Strings/Permutations.cs +++ b/Algorithms/Strings/Permutations.cs @@ -73,19 +73,12 @@ public static bool IsAnargram(string source, string other) return true; int len = source.Length; - // Hash set which will contains all the characters present in input source. - var hashSetSourceChars = new HashSet(); - var hashSetOtherChars = new HashSet(); - for (int i = 0; i < len; i++) + for(int i = 0; i