|
|
back to boardShow all messages Hide all messagesGive me some hints please you can use dynamic programming Please, tell me how to dp? I just use a heap. Edited by author 18.08.2006 19:22 Hint ASK 10 Mar 2010 16:23 Sort by finish time. For every delivery do: if current delivery time is greater than the number of already scheduled deliveries, schedule it; else (that is, it is equal), replace the least important scheduled delivery with this one. Altogether O(n log(n)). Edited by author 10.03.2010 18:40 Edited by author 10.03.2010 18:40 |
|
|