This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ingredients: | |
2 stewpans - one is main = 5 litres, second is for beet | |
potatoes - 12 items of average size, neither big nor small | |
beet - 4 items of average size | |
meat - a piece of pork without fat, size about 10x17x7 santimeters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#full source: https://github.com/dartist/sudoku_solver/blob/master/benchmarks/sudoku.py | |
def cross(A, B): | |
"Cross product of elements in A and elements in B." | |
return [a+b for a in A for b in B] | |
digits = '123456789' | |
rows = 'ABCDEFGHI' | |
cols = digits | |
squares = cross(rows, cols) |