Leetcode 2747. Count Zero Request Servers
Given n servers and timestamped request logs, for each query time return how many servers received no requests in the inclusive interval [query - x, query]. With logs and queries up to 1e5, this is typically solved efficiently by sorting logs and queries and using a sliding-window/two-pointer frequency count to maintain which servers are active in each window.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.