Why is the answer wrong?


  • 0
    J
    1. Valid Sudoku

    [".87654321","2........","3........","4........","5........","6........","7........","8........","9........"]

    my answer is false, but the expect is true.

    The Row one only expect '9', but the column one only expect '1' , '1' != '9', so I think it will be wrong!


  • 2
    J

    This is a simple problem, you only have to check the current state of the board. The instructions say:

    A valid Sudoku board (partially filled) is not necessarily solvable.
    Only the filled cells need to be validated.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.