Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 3648. Minimum Sensors to Cover Grid
Place sensors that each cover a square of side length 2k+1 under Chebyshev distance; the task is to minimize sensors to cover an n×m grid, which reduces to tiling the grid with (2k+1)×(2k+1) blocks. Thus the minimum number is ceil(n/(2k+1)) * ceil(m/(2k+1)).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.