Choosing the i-th server also covers the next i servers for free — but buying a free one can still pay off. Find the cheapest way to cover all of them.
Choosing the i-th server also covers the next i servers for free — but buying a free one can still pay off. Find the cheapest way to cover all of them.
This question is free
Log in to read the full question, run your code and see the solution.
Be the first to discuss this question
Approaches, follow-up questions and how the interview went. Log in to read and join the discussion.