Back to Question

Design a Logger Rate Limiter

Question Explain

Design a logger system that receives a stream of messages along with their timestamps. Only print each message if it is not printed in the last 10 seconds. Use a Hash Set and Hash Map.

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.