Пример #1
0
        public void MaxProfitOnePass_Returns_ExpectedResults(int[] prices, int expected)
        {
            var actual = BestTimeToBuyAndSellStock2.MaxProfitOnePass(prices);

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