Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2579. Count Total Number of Colored Cells
Starting from one colored cell on an infinite grid, every minute all uncolored cells adjacent to any colored cell become colored; determine the total number of colored cells after n minutes, which follows a quadratic growth pattern (sequence 1, 5, 13, 25, ...).
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.