Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am anghelmihai on github.
  • I am mihaian (https://keybase.io/mihaian) on keybase.
  • I have a public key ASD0D5xV7urRr0dSIt5tqP64MVWBshLHqIwjdrVN7D9_zQo

To claim this, I am signing this object:

@anghelmihai
anghelmihai / gist:3105436
Created July 13, 2012 15:18
sudoku checker
def check_sudoku(grid):
#check if in a sequence all the numbers except 0
#are unique
def is_unique_sequence(seq):
values = [value for value in seq if value != 0]
originalLength = len(values)
values = set(values)
if originalLength != len(values):
return False
return True