Skip to content

Instantly share code, notes, and snippets.

View arevak's full-sized avatar

Andrew Revak arevak

View GitHub Profile
@arevak
arevak / placing_kings.pl
Last active December 24, 2015 01:29
Solution to the placing $n kings in a $n x $n board with $k kings already placed.
# Input
# 5
# 4 1
# 2
# 3 0
#
# 5 2
# 1 3
# 4 4
# 1 3 0 2