logo

Logger Rate Limiter:设计一个日志速率限制器,同一条日志在10秒内不重复打印。

Logger Rate Limiter: Design a logger system that receives a stream of messages and returns true if the message should be printed (not printed in the last 10 seconds).

题目类型: technical

难度: easy

标签: google, real-question, cnblogs

目标公司: Google

← 返回面试题库

Logger Rate Limiter:设计一个日志速率限制器,同一条日志在10秒内不重复打印。

简单hash-tabledata-structures

想查看完整答案?

登录匠人学院学习中心,获取 STAR 格式回答和详细技术解析

前往学习中心查看答案