Skip to content

Instantly share code, notes, and snippets.

Sam Clearman samclearman

Block or report user

Report or block samclearman

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 infinitequeens.py
#!/usr/bin/env python
# Infinite queens
# Prints the lex-minimal infinite nonattacking queen placement
# in the first quadrant - amazingly, they form two lines with slopes
# phi and 1/phi
import sys
N = int(sys.argv[1])
You can’t perform that action at this time.