Advertisement
shadvoll

Untitled

Feb 28th, 2021
1,079
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # coding: utf-8
  3.  
  4. # In[15]:
  5.  
  6.  
  7. import numpy as np
  8.  
  9.  
  10. # In[16]:
  11.  
  12.  
  13. matrixIn = np.loadtxt("sudoku-task0.txt")
  14. print(matrixIn)
  15.  
  16.  
  17. # In[24]:
  18.  
  19.  
  20. def check_row(matrix, index, k):
  21.     i = index//9
  22.     j = index%9
  23.     return not k in matrix[i,:]
  24. def check_col(matrix, index, k):
  25.     #your code here
  26.    
  27. def check_tile(matrix, index, k):
  28.     #your code here
  29.  
  30.  
  31. # In[ ]:
  32.  
  33.  
  34.  
  35.  
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement