NeetCode #167LC-635MediumArrays & Hashing
← Back to All Problems#167 · #635 · Design Log Storage System(设计日志存储系统)
📌 Problem Statement & Constraints
Design a log storage system.
put(id, timestamp) stores a log with a timestamp formatted as "Year:Month:Day:Hour:Minute:Second". retrieve(start, end, granularity) returns the ids of logs whose timestamp matches the range when truncated to the given granularity. Constraints: at most 500 logs and 500 calls.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!