Created
April 26, 2018 17:46
-
-
Save floh1695/6489d9c9eea8987c0a857e1e7cb2769c to your computer and use it in GitHub Desktop.
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.Linq; | |
class Kata | |
{ | |
public static long MinValue(int[] a) | |
{ | |
var numbers = a | |
.ToList() | |
.Distinct() | |
.OrderBy(n => n); | |
return int.Parse(string.Join("", numbers)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.codewars.com/kata/form-the-minimum/train/csharp