Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
while it is good solution with O(n) complexity, we do not need to import
defaultdict
, use {} instead -->count = {}
For those still confused about the problem description, I'll try to explain it in simpler terms.
Imagine a water bottle with a 100% capacity (regardless of its actual volume in milliliters). Let's say that every day, 10% of the water in the bottle evaporates. The question is: on which day will the remaining capacity of the bottle reach a certain threshold?
Example
Given:
Find:
On which day will the remaining capacity of the bottle reach the threshold?
Example calculation:
Im interested with this solution, yet im not understand tho :D
can you please explain the flow please