dynamic programming
 
Bucket Hats