Ad
  • Default User Avatar

    AHh - yes. Forgot about the "little squares". Thanks

  • Default User Avatar

    In the JS kata the below sudoku array test states that it should return false - but I cant see why as it is a valid sudoku matrix?

    [
    [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ],
    [ 2, 3, 1, 5, 6, 4, 8, 9, 7 ],
    [ 3, 1, 2, 6, 4, 5, 9, 7, 8 ],
    [ 4, 5, 6, 7, 8, 9, 1, 2, 3 ],
    [ 5, 6, 4, 8, 9, 7, 2, 3, 1 ],
    [ 6, 4, 5, 9, 7, 8, 3, 1, 2 ],
    [ 7, 8, 9, 1, 2, 3, 4, 5, 6 ],
    [ 8, 9, 7, 2, 3, 1, 5, 6, 4 ],
    [ 9, 7, 8, 3, 1, 2, 6, 4, 5 ]
    ]

  • Default User Avatar

    Not only is that a really clever solution - it is also a really clear and straightforward solution ;)

    This bit of code has helped me immensely on how to look at and disect some fo these problems.

    Thanks!