[Programming Problem] House Robber

You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint...

[Programming Problem] Paint Fence

You are painting a fence of n posts with k different colors. You must paint the posts following these rules: Every post must be...