1. Mileyard Gigahertz says

    I've got a simpler solution using only half the lines:def check_sudoku(puzzle): column = [] for l in range(0, len(puzzle)): for n in range(0, len(puzzle)): if n+1 not in puzzle[l]: return False column.append(puzzle[n][l]) if len(column)==len(puzzle): for m in range(0, len(puzzle)): if m+1 not in column: return False column = [] return TrueThis one just uses if something not in list, return false, instead of comparing one by one. The column is not a list, so i created a column list while comparing the row list, and then do the same thing for the column list.

  2. Spades340 says

    After going through lesson 2.5, I think Dave would have come up with a different solution. I respect the thought and the logic that went into making this but a feel that I would be easy for someone to make a mistake while creating it increasing the time needed to debug.

  3. Nthulane Makgato says

    This solution does not cater for Sudukos that have decimal points or strings like the examples presented in the question!!!

  4. Jacob says

    I really enjoyed this challenge. It was fun and difficult.

Leave A Reply

Your email address will not be published.