You have n types of servers. For each type i, you have counts[i] servers, an upgrade_cost[i], and a sell_price[i]. You start with initial_money. You can sell a server of type i to gain sell_price[i]…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.