Created
April 26, 2018 01:57
-
-
Save JamesEnoch89/2f2e9c782db22eea368e1c7a02404f98 to your computer and use it in GitHub Desktop.
CodeWarsFormMin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
class Kata | |
{ | |
public static long MinValue(int[] x) | |
{ | |
{ | |
var noDups = x.Distinct().ToArray(); | |
var result = ""; | |
Array.Sort(noDups); | |
foreach (int value in noDups) | |
{ | |
Console.WriteLine(value); | |
result += value; | |
} | |
var rv = Convert.ToInt32(result); | |
return rv; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment