Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JamesEnoch89/2f2e9c782db22eea368e1c7a02404f98 to your computer and use it in GitHub Desktop.
Save JamesEnoch89/2f2e9c782db22eea368e1c7a02404f98 to your computer and use it in GitHub Desktop.
CodeWarsFormMin
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