Beispiel #1
0
        public static void Test_CombinationSum()
        {
            Stopwatch stopwatch = new Stopwatch();

            stopwatch.Start();
            CombinationSum.CombinationSum3(45, 9);
            stopwatch.Stop();

            Console.WriteLine("Time taken: {0}s", stopwatch.ElapsedMilliseconds);

            CombinationSum.CombinationSum3(7, 2);
            CombinationSum.CombinationSum3(9, 3);
        }
Beispiel #2
0
 public static void Test_CombinationSumI()
 {
     int[] nums   = { 2, 3, 6, 7 };
     var   output = CombinationSum.CombinationSumI(nums, 7);
 }