NeetCode #933LC-2579MediumMath & Geometry
← Back to All Problems#933 · #2579 · Count Total Number of Colored Cells(统计染色格子数)
📌 Problem Statement & Constraints
Starting from a single blue cell at minute 1, at every subsequent minute all uncolored cells sharing an edge with a blue cell are colored blue. Given
n, return the total number of blue cells after n minutes. Constraints: 1 <= n <= 10^5.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!