Skip to content

Instantly share code, notes, and snippets.

@michaelquinn32
michaelquinn32 / geyser.py
Created December 22, 2015 06:08
My Solution to the December 18th FiveThirtyEight Riddler using Python
from sympy import symbols
from sympy import integrals as Int
from itertools import permutations
class geyser:
'''
This is a python-based solution to the geyser problem presented on
FiveThirtyEight.com. It uses Sympy to evaluate an integral. With that
result, we create a general function for solving with the supplied rates.