Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
from collections import defaultdict
def slow(num_immortals):
stack = [1 << x for x in range(num_immortals)]
seen = []
while stack:
gene = stack.pop()