Say you have an array for which the ith element is the price of a given stock on day i.
原题地址:https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/
当优化问题的目标函数为两个或两个以上时,该优化问题就是多目标优化。不同于单目标优化问题,多目标问题没有单独的解能够同时优化所有目标,也就是目标函数之间存在着冲突关系,其最优解通常是一系列解。多目标优化问题的解...
Say you have an array for which the ith element is the price of a given stock on day i.