MicrosoftCodingMembers
Region Sizes in a Binary Image
Members only
Given a binary matrix (1 = foreground), return the size of every 4-directionally connected foreground region in first-encountered order (row-major scan). Signature int[] GetRegionSizes(int[][] image)....
SWE
grid
bfs
dfs
medium
Frequency
Single report
Last asked
2026-09-29
Stage
onsite-coding
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
