Given an integer
You are given a lamps, where lamps[i] = [row_i, col_i] indicates that there is an active lamp at cell [row_i, col_i]. Each active lamp illuminates every cell in its row, its column, and both of its diagonals.
You are also given a queries, where queries[j] = [row_j, col_j]. For the
Check whether cell [row_j, col_j] is currently illuminated. If it is illuminated, the answer is
Turn off any lamp situated at [row_j, col_j] or in any of its [row_j, col_j]).
Return an array of integers representing the answers to all queries in order.
Constraints:
lamps.length
lamps[i].length
queries.length
queries[j].length
Given an integer
You are given a lamps, where lamps[i] = [row_i, col_i] indicates that there is an active lamp at cell [row_i, col_i]. Each active lamp illuminates every cell in its row, its column, and both of its diagonals.
You are also given a queries, where queries[j] = [row_j, col_j]. For the
Check whether cell [row_j, col_j] is currently illuminated. If it is illuminated, the answer is
Turn off any lamp situated at [row_j, col_j] or in any of its [row_j, col_j]).
Return an array of integers representing the answers to all queries in order.
Constraints:
lamps.length
lamps[i].length
queries.length
queries[j].length