Ad
  • Custom User Avatar

    Atropus, please use spoiler flag next time.

  • Default User Avatar

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

  • Custom User Avatar

    Can you explain all your code i do not underestand.

  • Custom User Avatar

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

  • Custom User Avatar

    Oh my god, that's so smart! I love it :)

  • Default User Avatar

    Yes, "board", the same nomenclature used in the solution description!

    I've just reviewed the code again and see that I was indeed incorrect - couldn't see the wood for the trees.
    The data storage is what threw me. I assumed that the boards are stored as data arrays, so the first array is the entire board in the top left corner, rather than the data being a literal view of the entire sudoku board, as in the first array is the entire top row.

    I'm not sure if this data storage is a good idea or not (I'm inclined to think not!) but it may have been intentional on part of the author to add another layer of data translation into the kata.

    As such, I'll remove the issue flag and fix my code ;)

  • Default User Avatar

    Erm, 'board'? Maybe you meant rows and columns? Anyway, 5's can't make this board not valid, because all 5's are in different lines (rows, columns) and different quads. There is no repeating digit in any row, column or quad, so this sudoku is perfectly valid.

  • Default User Avatar

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

  • Default User Avatar

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