Skip to content

Bug Report for valid-sudoku #4024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
TPY9065 opened this issue Apr 9, 2025 · 0 comments
Open

Bug Report for valid-sudoku #4024

TPY9065 opened this issue Apr 9, 2025 · 0 comments

Comments

@TPY9065
Copy link

TPY9065 commented Apr 9, 2025

Bug Report for https://neetcode.io/problems/valid-sudoku

Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.

for below test case, the expected output should be false, as the only valid number for board[0][0] is 9, if only consider in row. However, it cannot be 9 when the column is also taken into account. Therefore, there should have no valid number in board[0][0]. So the results of this case should be false. However, it shows the expected output should be true.

board=[[".","8","7","6","5","4","3","2","1"],["2",".",".",".",".",".",".",".","."],["3",".",".",".",".",".",".",".","."],["4",".",".",".",".",".",".",".","."],["5",".",".",".",".",".",".",".","."],["6",".",".",".",".",".",".",".","."],["7",".",".",".",".",".",".",".","."],["8",".",".",".",".",".",".",".","."],["9",".",".",".",".",".",".",".","."]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant