CodingModerate
Optimal Research Center Location in Matrix
Filed under Samsung
The question
Given a matrix where 1 represents roads and 0 represents no road, find a road cell to build a research center such that the maximum distance to any of the given rare-element locations is minimized.
No write-up yet. Related questions below have one.
Related Samsung questions
Collected from public candidate posts and coding forums. Updated Nov 2026.