A carpenter is trying to build some furniture, he need a list wood blocks with different length, say L1, L2, ... Ln where 1 <= Li <= LMAX for i = 1,2. .. n. He need to purchase whole wood blocks from the shop. The wood blocks in the shop are fixed length, say LEN, LEN >= LMAX.
Can you help the carpenter save money by figuring out the minimum number of whole wood blocks he need to purchase?