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