public void FinalPrices_1() { var solution = new _1475_FinalPricesWithASpecialDiscountInAShop(); var result = solution.FinalPrices(new int[] { 8, 4, 6, 2, 3 }); AssertHelper.AssertArray(new int[] { 4, 2, 4, 2, 3 }, result); }
public void FinalPrices_3() { var solution = new _1475_FinalPricesWithASpecialDiscountInAShop(); var result = solution.FinalPrices(new int[] { 10, 1, 1, 6 }); AssertHelper.AssertArray(new int[] { 9, 0, 1, 6 }, result); }