public void SockMerchantTest() { int n = 9; string inputString = "10 20 20 10 10 30 50 10 20"; int[] ar = Array.ConvertAll(inputString.Split(' '), arTemp => Convert.ToInt32(arTemp)); int result = WarmUpChallenges.SockMerchant(n, ar); Console.WriteLine(result); Assert.AreEqual(3, result); }
public int SockMerchantTest(int number, int[] numbers) => WarmUpChallenges.SockMerchant(number, numbers);