Repository navigation
Es 2 - Esonero 2024 #52
notedo
started this conversation in
Backtracking
Replies: 1 comment
def es2_esonero(n, sol):
if len(sol) == n:
print(sol)
return
j = len(sol)
for i in range(3):
if j < 2 or (i + sol[j-1] + sol[j-2]) % 2 != 0:
sol.append(i)
es2_esonero(n, sol)
sol.pop() |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
All reactions