Spring Hire Sale
Limited Time Deal: Unlock all premium questions for over 30% off
$10.42$7.08
08
:
04
:
48
:
59
Back to Dashboard
Maximize Future Portfolio Value
Medium
You have a budget of m dollars to invest in securities. Each security is described by [symbol, currentPrice, futurePrice, maxShares]. Fractional shares are allowed, so you can buy any portion of a share up to maxShares total shares.
Your goal is to maximize the total future value of your portfolio. Any unspent budget is kept as cash and counts toward the total. You should only buy securities where the future price exceeds the current price. ...