Wrong output when submitting but correct when run as custom input


#1
  • A : [ "53..7....", "6..195...", ".98....6.", "8...6...3", "4..8.3..1", "7...2...6", ".6....28.", "...419..5", "....8..79" ]
    Expects output 1 which my solution provides if run as custom input.
    Submission says wrong output for this input though. Please help.

#2

I faced the same issue because I was using 9*9 hash table and adding keys at position A[i][j]-‘0’. It should A[i][j]-‘1’.