Array
3562. Maximum Profit from Trading Stocks with Discounts
A tree-hierarchy of n employees. Each has present[i] (buy price of a stock) and future[i] (future price). Budget budget. If a boss's stock is bought, a subordinate's stock can be bought at a discount…
Loading…