Algorithm · Google · Medium
Out-of-Order Message Rate Limiter Medium · Topics · Company Tags · Hints You are asked to design a rate limiter for a logging system. Each log entry consists of a timestamp (an integer) and a non‑empty message string. Because of network latency, the entries can arrive in an order that does not match their chronological timestamps. Implement the method: boolean shouldPrintMessage(int timestamp, String message) A call is allowed (returns true) exactly when there is no…
Checking your access…