Algorithm · OpenAI · Hard
Credit Scheduler Medium · Topics · Company Tags · Hints Design a service that manages time-limited resource tokens. The service supports three request types: GRANT amount start end: introduce amount tokens that become active at time start (inclusive) and expire at time end (exclusive). CONSUME amount time: attempt to use amount tokens at the given time. Only tokens that are active at time can be used. If several grants are active, tokens must be drawn from the grant whose…
Checking your access…