Search
⌘K
Get Premium
Leetcode 531. Lonely Pixel I
Given an m×n grid of 'B' and 'W', count how many black pixels are "lonely" — i.e., they are the only 'B' in both their row and their column; this is solved by aggregating row and column black counts and checking each black cell.
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.