C# : Shortest Solutions
Shortest Solutions In C# Do not compute 5. using System.Linq; public class Program { public static int func_five(int start, int end) { return Enumerable.Range(start, end-start+1).Count(x => !x.ToString().Contains("5")); } } Shortest Word using System.Linq; public class Program { public static int func_short(string s) { return s.Split(' ').Min(x => x.Length); } } Next Square using static System.Math; public class Program { public static long func_square(long num) { return Sqrt(num) % 1 == 0 ? (long)Pow(Sqrt(num) + 1, 2) : -1; } } Remove the min number in the List using System; using System.Collections.Generic; using System.Linq; public class Program { public static List func_RemoveSmallest(List numbers) { numbers.Remove(numbers.DefaultIfEmpty().Min()); return numbers; } } Validate PIN using System; using System.Linq; using System.Text.RegularExpressions; public class Progra...