예제 #1
0
        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);
        }
예제 #2
0
 public int SockMerchantTest(int number, int[] numbers)
 => WarmUpChallenges.SockMerchant(number, numbers);