I*******d 发帖数: 108 | 1 In a game there's a building that produces A coins per second. The goal is
to reach A number of coins. It cost B number of coins to upgrade, after
which the number of coins produced is increased by C, and player can upgrade
unlimited number of times by paying B coins. Write code to give optimal
upgrades and find runtime for the solution in terms of A, B and C. |
|