Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # coding: utf-8
- # In[15]:
- import numpy as np
- # In[16]:
- matrixIn = np.loadtxt("sudoku-task0.txt")
- print(matrixIn)
- # In[24]:
- def check_row(matrix, index, k):
- i = index//9
- j = index%9
- return not k in matrix[i,:]
- def check_col(matrix, index, k):
- #your code here
- def check_tile(matrix, index, k):
- #your code here
- # In[ ]:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement