Ad
  • Default User Avatar

    actually needs to be obj[letter] = obj[letter] ? [index].concat(obj[letter]) : [index] to handle same consecutive letters

  • Default User Avatar

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

    I pass all the tests except for this one. Why is this Sudoku 'not easy', in the position (3,0) the only possible option is 4, or am I missing something?

  • Default User Avatar