@@ -12,7 +12,6 @@ public static class Permutations
1212 /// <summary>
1313 /// Private Helper. Computes permutations recursively for string source.
1414 /// </summary>
15- /// <param name="s">S.</param>
1615 private static HashSet < string > _permutations ( string source )
1716 {
1817 var perms = new HashSet < string > ( ) ;
@@ -56,9 +55,9 @@ private static HashSet<string> _mergePermutations(HashSet<string> permutations,
5655 /// <summary>
5756 /// Computes the permutations of a string.
5857 /// </summary>
59- public static HashSet < string > ComputeDistinct ( string Source )
58+ public static HashSet < string > ComputeDistinct ( string source )
6059 {
61- return _permutations ( Source ) ;
60+ return _permutations ( source ) ;
6261 }
6362
6463 /// <summary>
@@ -68,13 +67,13 @@ public static bool IsAnargram(string source, string other)
6867 {
6968 if ( string . IsNullOrEmpty ( source ) || string . IsNullOrEmpty ( other ) )
7069 return false ;
71- else if ( source . Length != other . Length )
70+ if ( source . Length != other . Length )
7271 return false ;
73- else if ( source . Equals ( other , StringComparison . Ordinal ) )
72+ if ( source . Equals ( other , StringComparison . Ordinal ) )
7473 return true ;
7574
7675 int len = source . Length ;
77- // Hash set which will contains all the characters present in input souce .
76+ // Hash set which will contains all the characters present in input source .
7877 var hashSetSourceChars = new HashSet < char > ( ) ;
7978 var hashSetOtherChars = new HashSet < char > ( ) ;
8079 for ( int i = 0 ; i < len ; i ++ )
0 commit comments