Solved light bulb problem.
Simplified code a bit.
Standard dp problem.
One more dp problem
Flower garden problem.
GooseInZoo very inefficient solution
GooseInZoo [Solved]
GooseInZoo - Much more elegant.