It's difficult to know what's wrong without seeing the input that produced this result or your code. That does appear to be a valid sudoku board. Is it possible that your code is overwriting already solved squares given to you in the input?
Edit: I see what happened, your result array is rotated. You likely mixed up row and column or x and y somewhere.
"whats wrong with this?" is not a valid kata issue.
What kind of "wrong"? It is not a valid sudoku solution, because it has repeating numbers in the small 3x3 boxes.
hm, whats wrong with this?
Thank you so much for your prompt! You've been very helpful to me. Otherwise, I would have spent a lot more time looking for the reason!
It's difficult to know what's wrong without seeing the input that produced this result or your code. That does appear to be a valid sudoku board. Is it possible that your code is overwriting already solved squares given to you in the input?
Edit: I see what happened, your result array is rotated. You likely mixed up row and column or x and y somewhere.
Greetings!
I have got this result:
[
[5, 6, 1, 8, 4, 7, 9, 2, 3],
[3, 7, 9, 5, 2, 1, 6, 8, 4],
[4, 2, 8, 9, 6, 3, 1, 7, 5],
[6, 1, 3, 7, 8, 9, 5, 4, 2],
[7, 9, 4, 6, 5, 2, 3, 1, 8],
[8, 5, 2, 1, 3, 4, 7, 9, 6],
[9, 3, 5, 4, 7, 8, 2, 6, 1],
[1, 4, 6, 2, 9, 5, 8, 3, 7],
[2, 8, 7, 3, 1, 6, 4, 5, 9] ]
It seems confined in the terms of Sudoku, but the site considers him incorrect. What do you advise me to do? Thanks!
aghhhhh.....
shame on me.
I was cleary burned yesterday.
Thanks, i fixed it. i had mistake with isvalid fuction.
The second vertical has two 3's and no 8's, for example:
In fact, I think all columns/verticals are having duplicate numbers.
please add correct randomizer transformations, like in the JS version
This comment is hidden because it contains spoiler information about the solution
Random test generation was influenced by user defined functions on
Array.prototype
. This has now been fixed.based on the katas DrDesten solved and the error message, this could be JS
I could solve it, so it really cannot be 3 kyu
Fixed TypeScript translation
If anyone can take a look would be nice.
python new test frameworks
Loading more items...