Domain Name Forum

Domain Name Forum (http://www.domainnameforum.org/index.php)
-   C (http://www.domainnameforum.org/forumdisplay.php?f=124)
-   -   Fruit Harvest Algorithm (http://www.domainnameforum.org/showthread.php?t=84179)

C++ 04-05-2010 06:46 PM

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...


All times are GMT -4. The time now is 06:24 AM.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.