Ad
  • Custom User Avatar

    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!

  • Custom User Avatar

    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.

  • Custom User Avatar

    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!

  • Custom User Avatar

    aghhhhh.....

    shame on me.
    I was cleary burned yesterday.
    Thanks, i fixed it. i had mistake with isvalid fuction.

  • Custom User Avatar

    The second vertical has two 3's and no 8's, for example:

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

    In fact, I think all columns/verticals are having duplicate numbers.

  • Custom User Avatar

    please add correct randomizer transformations, like in the JS version

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Random test generation was influenced by user defined functions on Array.prototype. This has now been fixed.

  • Custom User Avatar

    based on the katas DrDesten solved and the error message, this could be JS

  • Custom User Avatar

    I could solve it, so it really cannot be 3 kyu

  • Custom User Avatar

    Fixed TypeScript translation
    If anyone can take a look would be nice.

  • Custom User Avatar
  • Custom User Avatar
  • Custom User Avatar

    how would you even verify proper generation ... this entire concept is beyond kyu 1

  • Custom User Avatar

    Very nice Kata, Thank you.
    Would be nice to add Typescript. I saw there is a ready translation.

  • Loading more items...