NeetCode #23LC-531MediumArrays & HashingNC Algo100
← Back to All Problems

#23 · #531 · Lonely Pixel I(孤独像素 I)

📌 Problem Statement & Constraints

Given an m x n picture consisting of black 'B' and white 'W' pixels, return the number of lonely black pixels. A black pixel at (i, j) is lonely if there is no other black pixel in row i or in column j. Constraints: 1 <= m, n <= 200.
🔒

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!