Ad
  • Custom User Avatar

    Hello! I think the C# example test cases are incorrect:
    Assert.AreEqual(2, SumOfSquares.NSquaresFor(17));
    Assert.AreEqual(2, SumOfSquares.NSquaresFor(18));
    Assert.AreEqual(3, SumOfSquares.NSquaresFor(19));
    How can this result be possible for 18 and 19: 18 = 16 + 1 + 1, 19 = 16 + 1 + 1 + 1. So it must be 3 and 4.
    Or maybe I just dont understand something.