Ad
  • Custom User Avatar

    Hi JohanWiltink,

    the language does not really matter here, but I was doing the C# one.
    In my opinion there should be at least two more testcases that explicitly check that a certain solution is not correct.

    • all values are 5. A simple sum check would say this is valid and accept it as a valid solution
    • lines and columns correct, but blocks of 3x3 not

    Hope this is clearer now.

    Best regards,
    Robert

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Hi,

    just detected a pretty nice solution, that had an error in the block selection.
    Nevertheless obviously the tests passed (otherwise it would not be in the solutions).

    So there is no test case that checks this (i.e. columns and rows correct, but blocks not)?

    Additionally there should be a test case for solutions that only use the sum approach (e.g. all cells value 5).

    bets regards,
    Robert.

  • Custom User Avatar

    Hi LesRamer,

    very nice solution.
    Nevertheless did you check in CellsInBox the Enumerable.Range?
    I'm wondering why there is no explicit test case to catch this (all rows and columns fine, but boxes not).

    bets regards,
    Robert