Ejemplo n.º 1
0
        public void MaxProfitPeakValleyApproach_Returns_ExpectedResults(int[] prices, int expected)
        {
            var actual = BestTimeToBuyAndSellStock2.MaxProfitPeakValleyApproach(prices);

            Assert.AreEqual(expected, actual);
        }
 public int MaxProfitPeakValleyApproach() => BestTimeToBuyAndSellStock2.MaxProfitPeakValleyApproach(Prices);