MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / pattern

Function pattern

projects/Sudoku_solver/main.py:8–9  ·  view source on GitHub ↗
(r, c)

Source from the content-addressed store, hash-verified

6 side = base * base
7
8 def pattern(r, c):
9 return (base * (r % base) + r // base + c) % side
10
11 def shuffle(s):
12 return sample(s, len(s))

Callers 1

generate_boardFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected