leetcode.cn 2026-11-06
🟡2747.count-zero-request-servers
🏷️ Tags
#array #hash_table #sorting #sliding_window
🟡2747.count-zero-request-servers
🏷️ Tags
#array #hash_table #sorting #sliding_window
Telegraph
count-zero-request-servers
给你一个整数 n ,表示服务器的总数目,再给你一个下标从 0 开始的 二维 整数数组 logs ,其中 logs[i] = [server_id, time] 表示 id 为 server_id 的服务器在 time 时收到了一个请求。 同时给你一个整数 x 和一个下标从 0 开始的整数数组 queries 。 请你返回一个长度等于 queries.length 的数组 arr ,其中 arr[i] 表示在时间区间 [queries[i] - x, queries[i]] 内没有收到请求的服务器数目。…
leetcode.com 2026-11-06
🟡2747.count-zero-request-servers
🏷️ Tags
#array #hash_table #sorting #sliding_window
🟡2747.count-zero-request-servers
🏷️ Tags
#array #hash_table #sorting #sliding_window
Telegraph
count-zero-request-servers
You are given an integer n denoting the total number of servers and a 2D 0-indexed integer array logs, where logs[i] = [server_id, time] denotes that the server with id server_id received a request at time time. You are also given an integer x and a 0-indexed…