예제 #1
0
        public void ChangeTest(int amount, int[] coins, int expected)
        {
            var subsetSum = new PartitionEqualsSubsetSum();
            var result    = subsetSum.Change(amount, coins);

            Assert.AreEqual(expected, result);
        }
예제 #2
0
        public void CanPartition(int[] nums, bool expected)
        {
            var subsetSum = new PartitionEqualsSubsetSum();
            var result    = subsetSum.CanPartition(nums);

            Assert.AreEqual(expected, result);
        }