View Single Post
  #1  
Old 04-05-2010, 05:46 PM
C++ C++ is offline
Senior Member
 
Join Date: Jun 2009
Posts: 18,248
Default Fruit Harvest Algorithm

I need an algorithm for the following problem: There's a tree with N fruits each with its own weight w[i] and height h[i]. I can only reach a fruit if it's no taller than H inches. Also every time I pick a fruit, all the other fruits in the tree rise by exactly U inches. I need to find out the...
__________________
C++
domain name forum
Reply With Quote