Paint house
For n days you buy one shirt a day in blue, green or red, and each color's price changes by day. You may not buy the same color two days in a row. Return the lowest total cost.
No answer yet. Write the first one; the best answer gets endorsed.
