An infinite two dimensional grid of unit cells starts completely uncolored. You are given a positive integer n.
During the first minute, exactly
Every subsequent minute, every uncolored cell that shares an edge with at least
Return the total count of colored cells after n minutes have passed.
Constraints:
n
An infinite two dimensional grid of unit cells starts completely uncolored. You are given a positive integer n.
During the first minute, exactly
Every subsequent minute, every uncolored cell that shares an edge with at least
Return the total count of colored cells after n minutes have passed.
Constraints:
n