Rate Limiter — Return Dropped Request Times

Asked at Snowflake · Coding Questions · Difficulty: Medium · Last asked Jul 22, 2026

A service receives requests at known arrival times and must throttle them. Write a function that runs a rate limiter with two limits over the arrival times and returns the times of the requests it drops. Only accepted requests count toward the limits, so a dropped request uses no capacity.

Loading the problem…