public void Test13Factors() { int n = 13; string numStr = ProblemSeries.RemoveWhitespace(); var prob = new Prob8(numStr); var result = prob.MaxProductForWindow(n); Assert.AreEqual(23514624000, result.Value); TestUtils.WriteOut(result.PrettyPrint()); }
public void Test4Factors() { int n = 4; string numStr = ProblemSeries.RemoveWhitespace(); var prob = new Prob8(numStr); var result = prob.MaxProductForWindow(n); //9 × 9 × 8 × 9 = 5832 Assert.AreEqual(5832, result.Value); }