Skip to content

Instantly share code, notes, and snippets.

Maxwell A McKinnon maxwellmckinnon

Block or report user

Report or block maxwellmckinnon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View SF_Dir_Organization.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maxwellmckinnon
maxwellmckinnon / zero-move-nim.py
Created Oct 31, 2017
Solution to zero move nim
View zero-move-nim.py
#!/bin/python3
# Chris Grundy McKinnon method
import sys
from functools import reduce
g = int(input().strip())
for a0 in range(g):
n = int(input().strip()) # num of heaps
p = [int(p_temp) for p_temp in input().strip().split(' ')] # pile counts
You can’t perform that action at this time.