Ad
  • Custom User Avatar

    Kata
    Exit Full Screen
    Hello, my solution is working only for some test cases. For the rest, the output is "Value is not what was expected", but if I manually verify it the Result Puzzle is a valid one. Any idea what can be the issue here? Using python btw
    Example:

    Input puzzle part of the Test cases.
    [[6, 0, 0, 1, 0, 8, 2, 0, 3],
    [0, 2, 0, 0, 4, 0, 0, 9, 0],
    [8, 0, 3, 0, 0, 5, 4, 0, 0],
    [5, 0, 4, 6, 0, 7, 0, 0, 9],
    [0, 3, 0, 0, 0, 0, 0, 5, 0],
    [7, 0, 0, 8, 0, 3, 1, 0, 2],
    [0, 0, 1, 7, 0, 0, 9, 0, 6],
    [0, 8, 0, 0, 3, 0, 0, 2, 0],
    [3, 0, 2, 9, 0, 4, 0, 0, 5]]

    Result:
    Output puzzle
    [[6, 4, 5, 1, 9, 8, 2, 7, 3],
    [1, 2, 7, 3, 4, 6, 5, 9, 8],
    [8, 9, 3, 2, 7, 5, 4, 6, 1],
    [5, 1, 4, 6, 2, 7, 3, 8, 9],
    [2, 3, 8, 4, 1, 9, 6, 5, 7],
    [7, 6, 9, 8, 5, 3, 1, 4, 2],
    [4, 5, 1, 7, 8, 2, 9, 3, 6],
    [9, 8, 6, 5, 3, 1, 7, 2, 4],
    [3, 7, 2, 9, 6, 4, 1, 8, 5]]