Increment and get the number of times the percentage has been incremented.
Time complexity: O(1)
Space complexity: O(1)
The number of times this percentage has been incremented
Increment and get the percentage.
Time complexity: O(1)
Space complexity: O(1)
The percentage
A class to help with specific use-cases where you are using a percentage (ex.
1 / n
) but don't known
until runtime.Example