public void MaxProfitBruteForce_Returns_ExpectedResults(int[] prices, int expected) { var actual = BestTimeToBuyAndSellStock1.MaxProfitBruteForce(prices); Assert.AreEqual(expected, actual); }
public int MaxProfitBruteForce() => BestTimeToBuyAndSellStock1.MaxProfitBruteForce(Prices);