You are given an integer n representing the total number of servers, indexed from n. You are also given a logs where logs[i] = [server_id, time] indicates that the server with identifier server_id received a request at time time.
Additionally, you are given an integer x and an integer array queries.
For each query queries[j], determine the count of servers that received zero requests in the time interval queries[j] queries[j]
Return an array ans of length queries.length where ans[j] is the answer to the
Constraints:
n
logs.length
queries.length
logs[i].length
logs[i][0] n
logs[i][1]
x
x queries[i]
You are given an integer n representing the total number of servers, indexed from n. You are also given a logs where logs[i] = [server_id, time] indicates that the server with identifier server_id received a request at time time.
Additionally, you are given an integer x and an integer array queries.
For each query queries[j], determine the count of servers that received zero requests in the time interval queries[j] queries[j]
Return an array ans of length queries.length where ans[j] is the answer to the
Constraints:
n
logs.length
queries.length
logs[i].length
logs[i][0] n
logs[i][1]
x
x queries[i]