InterviewDB Question

Virus Containment: Minimum Cuts to Isolate a Spreading Infection on a Grid

Question Details

Problem A virus spreads on an m x n grid. Each day, infected cells spread to all 4-connected neighbors. You can quarantine one connected infected region per day by adding walls on its perimeter (each wall segment costs 1). Find the minimum total wall…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Onsite Phone