[LeetCode] Minimum Time For K Virus Variants to Spread

1 · · April 26, 2022, 9:41 a.m.
1956. Minimum Time For K Virus Variants to Spread There are n unique virus variants in an infinite 2D grid. You are given a 2D array points, where points[i] = [xi, yi] represents a virus originating at (xi, yi) on day 0. Note that it is possible for multiple virus variants to originate at the same point. Every day, each cell infected with a virus variant will spread the virus to all neighboring points in the four cardinal directions (i.e. up, down, left, and right). If a cell has multiple varia...