stackexchange-fun Some fun finding an algorithm for a stackexchange question with an optimization problem