garyburd·15 anni fa·discussHere's a solution in ~50 lines of Python: https://news.ycombinator.com/item?id=3249937