Usage-Based Billing Calculator
Design a system to calculate the total cost of resource usage across a list of time intervals, given a default price per unit time and an optional price override interval with a different rate.
Asked at:
C
crusoe
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Late March, 2026
C
crusoe
Staff
Design a system to calculate the total cost of resource usage over time. You are given: A list of usage intervals, where each interval has: start (inclusive) end (exclusive) A default price per unit time An optional price override interval with a different price
Hello Interview Premium
Your account is free and you can post anonymously if you choose.