Tessell SDE-Intern OA Questions | May 2026 | Graph Problem

Question · Posted Jun 2026

Hospital Vaccine Distribution Problem Statement There are n hospitals numbered from 1 to n. Some hospitals are connected by bidirectional roads. The road network is represented by a 2D array roads, where: roads[i] = [u, v] indicates a road between hospitals u and v. Each hospital has a vaccine status represented by an array status: Positive value (> 0) → Hospital has surplus vaccines. Zero (0) → Hospital is self-sufficient. Negative value (< 0) → Hospital is deficient and needs ...

The full answer & interview discussion are available to premium members.

Log in Create a free account