diff --git "a/8. \320\240\320\265\320\272\321\203\321\200\321\201\320\270\320\262\320\275\321\213\320\265 \320\260\320\273\320\263\320\276\321\200\320\270\321\202\320\274\321\213/CaseAlternatorTask.cs" "b/8. \320\240\320\265\320\272\321\203\321\200\321\201\320\270\320\262\320\275\321\213\320\265 \320\260\320\273\320\263\320\276\321\200\320\270\321\202\320\274\321\213/CaseAlternatorTask.cs" index 64b6f0d..075e6ef 100644 --- "a/8. \320\240\320\265\320\272\321\203\321\200\321\201\320\270\320\262\320\275\321\213\320\265 \320\260\320\273\320\263\320\276\321\200\320\270\321\202\320\274\321\213/CaseAlternatorTask.cs" +++ "b/8. \320\240\320\265\320\272\321\203\321\200\321\201\320\270\320\262\320\275\321\213\320\265 \320\260\320\273\320\263\320\276\321\200\320\270\321\202\320\274\321\213/CaseAlternatorTask.cs" @@ -1,10 +1,11 @@ +using System.Linq; public class CaseAlternatorTask { public static List AlternateCharCases(string lowercaseWord) { var result = new List(); AlternateCharCases(lowercaseWord.ToCharArray(), 0, result); - return result; + return return result.ToArray().Distinct().ToList(); } static void AlternateCharCases(char[] word, int startIndex, List result) @@ -24,4 +25,4 @@ static void AlternateCharCases(char[] word, int startIndex, List result) AlternateCharCases(word, startIndex + 1, result); word[startIndex] = char.ToLower(word[startIndex]); } - } \ No newline at end of file + }